fixed calculation of the non-client-area when WS_BORDER is set

svn path=/trunk/; revision=9204
This commit is contained in:
Thomas Bluemel 2004-04-23 19:29:04 +00:00
parent ac9fc6496a
commit eabb3b47ad

View file

@ -543,7 +543,7 @@ DefWndNCCalcSize(HWND hWnd, BOOL CalcSizeStruct, RECT *Rect)
UserGetWindowBorders(Style, ExStyle, &WindowBorders, FALSE);
InflateRect(Rect, -WindowBorders.cx, -WindowBorders.cy);
} else
if (ExStyle & WS_EX_STATICEDGE)
if ((ExStyle & WS_EX_STATICEDGE) || (Style & WS_BORDER))
{
InflateRect(Rect, -1, -1);
}