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,6 +985,8 @@ BOOL CALLBACK DebuggerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPara
}
case WM_SIZE: {
if(wParam == SIZE_RESTORED)
{
GetWindowRect(hwndDlg,&newDebuggerRect);
DbgSizeX = newDebuggerRect.right-newDebuggerRect.left;
DbgSizeY = newDebuggerRect.bottom-newDebuggerRect.top;
@ -992,6 +994,7 @@ BOOL CALLBACK DebuggerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPara
currDebuggerRect = newDebuggerRect;
InvalidateRect(hwndDlg,0,TRUE);
UpdateWindow(hwndDlg);
}
break;
}