Fix display window calculation. Patch by Ricardo Hanke.
CORE-7656

svn path=/trunk/; revision=65620
This commit is contained in:
Ziliang Guo 2014-12-12 21:15:17 +00:00
parent 57fd9b8882
commit 34dee12ec2

View file

@ -646,8 +646,8 @@ ImageView_WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
RECT rc;
SendMessage(hToolBar, TB_AUTOSIZE, 0, 0);
SendMessage(hToolBar, TB_GETITEMRECT, 1, (LPARAM)&rc);
MoveWindow(hDispWnd, 1, 1, LOWORD(lParam)-1, HIWORD(lParam)-rc.bottom, TRUE);
GetWindowRect(hToolBar, &rc);
MoveWindow(hDispWnd, 1, 1, LOWORD(lParam) - 1, HIWORD(lParam) - (rc.bottom - rc.top) - 1, TRUE);
return 0L;
}
case WM_DESTROY: