Author: cwittich
Date: Wed Jan 28 06:28:11 2009
New Revision: 39175
URL:
http://svn.reactos.org/svn/reactos?rev=39175&view=rev
Log:
calculate toolbar height instead of use the hardcoded value 35
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] Wed Jan 28 06:28:11 2009
@@ -379,9 +379,10 @@
lpttt->lpszText =
MAKEINTRESOURCE(IDS_TOOLTIP_ROT_CLOCKW);
break;
}
+ return TRUE;
}
}
- return TRUE;
+ break;
}
case WM_SIZING:
{
@@ -395,8 +396,10 @@
}
case WM_SIZE:
{
- MoveWindow(hDispWnd, 1, 1, LOWORD(lParam)-1, HIWORD(lParam)-35, TRUE);
+ 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);
return 0L;
}
case WM_DESTROY: