Commit 2d8ad31e authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

comctl32: Fix incorrect use of border metrics.

parent 68f3d21f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment