mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
fixed calculation of the non-client-area when WS_BORDER is set
svn path=/trunk/; revision=9204
This commit is contained in:
parent
ac9fc6496a
commit
eabb3b47ad
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue