mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
fixed calculation of the non-client-area when WS_BORDER is set
svn path=/trunk/; revision=9204
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user