comctl32: Fix incorrect use of border metrics.
This commit is contained in:
parent
68f3d21f02
commit
2d8ad31e22
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue