summaryrefslogtreecommitdiff
path: root/new/window_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-08 20:53:34 -0400
committerPietro Gagliardi <[email protected]>2015-04-08 20:53:34 -0400
commitfef91d9820b5df51f2ef7aff49043933f2e413b9 (patch)
tree3498d4f54429a212176258d1a0a2e4861be867eb /new/window_windows.c
parent87bb7328324a626d6278eaa204206311f717c7fb (diff)
"Fixed" initial Windows window shows for now (see previous commit). Not yet a clean fix; need to test some things on real Windows first.
Diffstat (limited to 'new/window_windows.c')
-rw-r--r--new/window_windows.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/new/window_windows.c b/new/window_windows.c
index 881173d..88e7aae 100644
--- a/new/window_windows.c
+++ b/new/window_windows.c
@@ -30,10 +30,12 @@ static LRESULT CALLBACK uiWindowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA
return lResult;
switch (uMsg) {
case WM_WINDOWPOSCHANGED:
- if (w->child == NULL)
- break;
if ((wp->flags & SWP_NOSIZE) != 0)
break;
+ // fall through
+ case msgUpdateChild:
+ if (w->child == NULL)
+ break;
if (GetClientRect(w->hwnd, &r) == 0)
logLastError("error getting window client rect for resize in uiWindowWndProc()");
resize(w->child, w->hwnd, r);