From fef91d9820b5df51f2ef7aff49043933f2e413b9 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 8 Apr 2015 20:53:34 -0400 Subject: "Fixed" initial Windows window shows for now (see previous commit). Not yet a clean fix; need to test some things on real Windows first. --- new/window_windows.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'new/window_windows.c') 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); -- cgit v1.2.3