Author: zguo
Date: Fri Dec 12 21:15:17 2014
New Revision: 65620
URL:
http://svn.reactos.org/svn/reactos?rev=65620&view=rev
Log:
[SHIMGV]
Fix display window calculation. Patch by Ricardo Hanke.
CORE-7656
Modified:
trunk/reactos/dll/win32/shimgvw/shimgvw.c
Modified: trunk/reactos/dll/win32/shimgvw/shimgvw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shimgvw/shimgvw.…
==============================================================================
--- trunk/reactos/dll/win32/shimgvw/shimgvw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shimgvw/shimgvw.c [iso-8859-1] Fri Dec 12 21:15:17 2014
@@ -646,8 +646,8 @@
{
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: