From db80156eba98e851d4e9983261eb060bb60d615e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 26 Oct 2014 14:43:45 -0400 Subject: Began migrating the Windows code away from using container entirely. This is going to be a mess for Tab... hopefully only a short-term one. --- window_windows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'window_windows.c') diff --git a/window_windows.c b/window_windows.c index a4eefb3..8f618ab 100644 --- a/window_windows.c +++ b/window_windows.c @@ -28,7 +28,8 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA if (FillRect((HDC) wParam, &r, windowBackground) == 0) xpanic("error filling WM_PRINTCLIENT DC with window background color", GetLastError()); return lResult; - case WM_SIZE: + case WM_WINDOWPOSCHANGING: + case WM_WINDOWPOSCHANGED: if (GetClientRect(hwnd, &r) == 0) xpanic("error getting client rect for Window in WM_SIZE", GetLastError()); windowResize(data, &r); -- cgit v1.2.3