fix sf [ 2073113 ] Child windows inside debugging window get invalid sizes

This commit is contained in:
zeromus 2008-10-09 03:29:19 +00:00
parent 1bfca2e198
commit 498e72e30f
1 changed files with 10 additions and 7 deletions

View File

@ -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;
}