comctl32: Fix incorrect use of border metrics.

This commit is contained in:
Owen Rudge 2011-08-09 16:39:09 +01:00 committed by Alexandre Julliard
parent 68f3d21f02
commit 2d8ad31e22
1 changed files with 2 additions and 2 deletions

View File

@ -3066,8 +3066,8 @@ TOOLBAR_AutoSize (TOOLBAR_INFO *infoPtr)
if (infoPtr->dwStyle & WS_BORDER)
{
cy += 2 * GetSystemMetrics(SM_CXBORDER);
cx += 2 * GetSystemMetrics(SM_CYBORDER);
cx += 2 * GetSystemMetrics(SM_CXBORDER);
cy += 2 * GetSystemMetrics(SM_CYBORDER);
}
SetWindowPos(infoPtr->hwndSelf, NULL, x, y, cx, cy, uPosFlags);