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)
|
if (infoPtr->dwStyle & WS_BORDER)
|
||||||
{
|
{
|
||||||
cy += 2 * GetSystemMetrics(SM_CXBORDER);
|
cx += 2 * GetSystemMetrics(SM_CXBORDER);
|
||||||
cx += 2 * GetSystemMetrics(SM_CYBORDER);
|
cy += 2 * GetSystemMetrics(SM_CYBORDER);
|
||||||
}
|
}
|
||||||
|
|
||||||
SetWindowPos(infoPtr->hwndSelf, NULL, x, y, cx, cy, uPosFlags);
|
SetWindowPos(infoPtr->hwndSelf, NULL, x, y, cx, cy, uPosFlags);
|
||||||
|
|
Loading…
Reference in New Issue