mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
[NtUser] - Patch by Józef Kucia : Prevent resetting WS_MINIMIZE through SetWindowLong.
svn path=/trunk/; revision=72335
This commit is contained in:
parent
1a411ce0e6
commit
d3af3bb97e
1 changed files with 3 additions and 1 deletions
|
@ -3587,8 +3587,10 @@ co_IntSetWindowLong(HWND hWnd, DWORD Index, LONG NewValue, BOOL Ansi, BOOL bAlte
|
||||||
if (!bAlter)
|
if (!bAlter)
|
||||||
co_IntSendMessage(hWnd, WM_STYLECHANGING, GWL_STYLE, (LPARAM) &Style);
|
co_IntSendMessage(hWnd, WM_STYLECHANGING, GWL_STYLE, (LPARAM) &Style);
|
||||||
|
|
||||||
/* WS_CLIPSIBLINGS can't be reset on top-level windows */
|
/* WS_CLIPSIBLINGS can't be reset on top-level windows */
|
||||||
if (Window->spwndParent == UserGetDesktopWindow()) Style.styleNew |= WS_CLIPSIBLINGS;
|
if (Window->spwndParent == UserGetDesktopWindow()) Style.styleNew |= WS_CLIPSIBLINGS;
|
||||||
|
/* WS_MINIMIZE can't be reset */
|
||||||
|
if (OldValue & WS_MINIMIZE) Style.styleNew |= WS_MINIMIZE;
|
||||||
/* Fixes wine FIXME: changing WS_DLGFRAME | WS_THICKFRAME is supposed to change WS_EX_WINDOWEDGE too */
|
/* Fixes wine FIXME: changing WS_DLGFRAME | WS_THICKFRAME is supposed to change WS_EX_WINDOWEDGE too */
|
||||||
if (IntCheckFrameEdge(NewValue, Window->ExStyle))
|
if (IntCheckFrameEdge(NewValue, Window->ExStyle))
|
||||||
Window->ExStyle |= WS_EX_WINDOWEDGE;
|
Window->ExStyle |= WS_EX_WINDOWEDGE;
|
||||||
|
|
Loading…
Reference in a new issue