diff options
Diffstat (limited to 'new/window_windows.c')
| -rw-r--r-- | new/window_windows.c | 6 |
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); |
