Migrated windows/container.c. More fixes.
This commit is contained in:
parent
ef08a106f9
commit
9431f2a837
|
@ -55,19 +55,12 @@ void uninitContainer(void)
|
||||||
logLastError("error unregistering container window class in uninitContainer()");
|
logLastError("error unregistering container window class in uninitContainer()");
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO make into a uiNewContainer()
|
uintptr_t uiMakeContainer(uiControl *c)
|
||||||
void uiMakeContainer(uiControl *c)
|
|
||||||
{
|
{
|
||||||
uiWindowsMakeControlParams p;
|
setSingleHWNDFuncs(c);
|
||||||
|
return (uintptr_t) uiWindowsUtilCreateControlHWND(0,
|
||||||
p.dwExStyle = 0;
|
containerClass, L"",
|
||||||
p.lpClassName = containerClass;
|
0,
|
||||||
p.lpWindowName = L"";
|
hInstance, NULL,
|
||||||
p.dwStyle = 0;
|
FALSE);
|
||||||
p.hInstance = hInstance;
|
|
||||||
p.lpParam = NULL;
|
|
||||||
p.useStandardControlFont = TRUE;
|
|
||||||
p.onDestroy = onDestroy;
|
|
||||||
p.onDestroyData = NULL;
|
|
||||||
uiWindowsMakeControl(c, &p);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ void uiWindowsUtilResize(HWND hwnd, intmax_t x, intmax_t y, intmax_t width, intm
|
||||||
moveWindow(hwnd, x, y, width, height, d);
|
moveWindow(hwnd, x, y, width, height, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void singleHWNDResize(HWND hwnd, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d)
|
static void singleHWNDResize(uiControl *c, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d)
|
||||||
{
|
{
|
||||||
uiWindowsUtilResize(HWND(c), x, y, width, height, d);
|
uiWindowsUtilResize(HWND(c), x, y, width, height, d);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue