More fixes.
This commit is contained in:
parent
d00bd04031
commit
da8613d833
|
@ -167,3 +167,30 @@ uiControl *uiWindowsNewSingleHWNDControl(uintmax_t type)
|
||||||
setSingleHWNDFuncs(c);
|
setSingleHWNDFuncs(c);
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO migrate these to the system set up above
|
||||||
|
|
||||||
|
char *uiWindowsControlText(uiControl *c)
|
||||||
|
{
|
||||||
|
HWND hwnd;
|
||||||
|
WCHAR *wtext;
|
||||||
|
char *text;
|
||||||
|
|
||||||
|
hwnd = (HWND) uiControlHandle(c);
|
||||||
|
wtext = windowText(hwnd);
|
||||||
|
text = toUTF8(wtext);
|
||||||
|
uiFree(wtext);
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
void uiWindowsControlSetText(uiControl *c, const char *text)
|
||||||
|
{
|
||||||
|
HWND hwnd;
|
||||||
|
WCHAR *wtext;
|
||||||
|
|
||||||
|
hwnd = (HWND) uiControlHandle(c);
|
||||||
|
wtext = toUTF16(text);
|
||||||
|
if (SetWindowTextW(hwnd, wtext) == 0)
|
||||||
|
logLastError("error setting control text in uiWindowsControlSetText()");
|
||||||
|
uiFree(wtext);
|
||||||
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ static void showHidePage(struct tab *t, LRESULT which, int hide)
|
||||||
return;
|
return;
|
||||||
page = ptrArrayIndex(t->pages, struct tabPage *, which);
|
page = ptrArrayIndex(t->pages, struct tabPage *, which);
|
||||||
if (hide)
|
if (hide)
|
||||||
//TODO uiControlContainerHide(page->control);
|
;//TODO uiControlContainerHide(page->control);
|
||||||
else {
|
else {
|
||||||
//TODO uiControlContainerShow(page->control);
|
//TODO uiControlContainerShow(page->control);
|
||||||
// we only resize the current page, so we have to do this here
|
// we only resize the current page, so we have to do this here
|
||||||
|
|
Loading…
Reference in New Issue