From 498e72e30f8768fc14ecb1d71886f26fd82ee425 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 9 Oct 2008 03:29:19 +0000 Subject: [PATCH] fix sf [ 2073113 ] Child windows inside debugging window get invalid sizes --- src/drivers/win/debugger.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/drivers/win/debugger.cpp b/src/drivers/win/debugger.cpp index 37c2e47f..e7ff9c17 100644 --- a/src/drivers/win/debugger.cpp +++ b/src/drivers/win/debugger.cpp @@ -985,13 +985,16 @@ BOOL CALLBACK DebuggerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPara } case WM_SIZE: { - GetWindowRect(hwndDlg,&newDebuggerRect); - DbgSizeX = newDebuggerRect.right-newDebuggerRect.left; - DbgSizeY = newDebuggerRect.bottom-newDebuggerRect.top; - EnumChildWindows(hwndDlg,DebuggerEnumWindowsProc,0); - currDebuggerRect = newDebuggerRect; - InvalidateRect(hwndDlg,0,TRUE); - UpdateWindow(hwndDlg); + if(wParam == SIZE_RESTORED) + { + GetWindowRect(hwndDlg,&newDebuggerRect); + DbgSizeX = newDebuggerRect.right-newDebuggerRect.left; + DbgSizeY = newDebuggerRect.bottom-newDebuggerRect.top; + EnumChildWindows(hwndDlg,DebuggerEnumWindowsProc,0); + currDebuggerRect = newDebuggerRect; + InvalidateRect(hwndDlg,0,TRUE); + UpdateWindow(hwndDlg); + } break; }