mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 02:15:47 +00:00
[SHIMGV]
Fix display window calculation. Patch by Ricardo Hanke. CORE-7656 svn path=/trunk/; revision=65620
This commit is contained in:
parent
57fd9b8882
commit
34dee12ec2
1 changed files with 2 additions and 2 deletions
|
@ -646,8 +646,8 @@ ImageView_WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
RECT rc;
|
RECT rc;
|
||||||
SendMessage(hToolBar, TB_AUTOSIZE, 0, 0);
|
SendMessage(hToolBar, TB_AUTOSIZE, 0, 0);
|
||||||
SendMessage(hToolBar, TB_GETITEMRECT, 1, (LPARAM)&rc);
|
GetWindowRect(hToolBar, &rc);
|
||||||
MoveWindow(hDispWnd, 1, 1, LOWORD(lParam)-1, HIWORD(lParam)-rc.bottom, TRUE);
|
MoveWindow(hDispWnd, 1, 1, LOWORD(lParam) - 1, HIWORD(lParam) - (rc.bottom - rc.top) - 1, TRUE);
|
||||||
return 0L;
|
return 0L;
|
||||||
}
|
}
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue