mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NtUser] Fix maximizing to window edge
Cover up the edge of the frame while maximizing the window to desktop. Fixes CORE-15893.
This commit is contained in:
parent
75a7cf89a7
commit
0197c4f875
1 changed files with 4 additions and 0 deletions
|
@ -958,6 +958,10 @@ co_WinPosGetMinMaxInfo(PWND Window, POINT* MaxSize, POINT* MaxPos,
|
||||||
|
|
||||||
adjust = IntGetWindowBorders(adjustedStyle, exstyle);
|
adjust = IntGetWindowBorders(adjustedStyle, exstyle);
|
||||||
|
|
||||||
|
// Handle special case while maximized. CORE-15893
|
||||||
|
if ((adjustedStyle & WS_THICKFRAME) && !(adjustedStyle & WS_CHILD) && !(adjustedStyle & WS_MINIMIZE))
|
||||||
|
adjust += 2;
|
||||||
|
|
||||||
xinc = yinc = adjust;
|
xinc = yinc = adjust;
|
||||||
|
|
||||||
if ((adjustedStyle & WS_THICKFRAME) && (adjustedStyle & WS_CHILD) && !(adjustedStyle & WS_MINIMIZE))
|
if ((adjustedStyle & WS_THICKFRAME) && (adjustedStyle & WS_CHILD) && !(adjustedStyle & WS_MINIMIZE))
|
||||||
|
|
Loading…
Reference in a new issue