mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NTUSER] Disable SC_MOVE if WS_MAXIMIZE or WS_MINIMIZE (#5855)
Based on KRosUser's scmove.patch. - Check also WS_MINIMIZE window style to determine to disable SC_MOVE system command. CORE-19272
This commit is contained in:
parent
00f192fa94
commit
ad12c6cdea
1 changed files with 1 additions and 1 deletions
|
@ -1366,7 +1366,7 @@ void FASTCALL MENU_InitSysMenuPopup(PMENU menu, DWORD style, DWORD clsStyle, LON
|
|||
|
||||
gray = !(style & WS_THICKFRAME) || (style & (WS_MAXIMIZE | WS_MINIMIZE));
|
||||
IntEnableMenuItem( menu, SC_SIZE, (gray ? MF_GRAYED : MF_ENABLED) );
|
||||
gray = ((style & WS_MAXIMIZE) != 0);
|
||||
gray = ((style & (WS_MAXIMIZE | WS_MINIMIZE)) != 0);
|
||||
IntEnableMenuItem( menu, SC_MOVE, (gray ? MF_GRAYED : MF_ENABLED) );
|
||||
gray = !(style & WS_MINIMIZEBOX) || (style & WS_MINIMIZE);
|
||||
IntEnableMenuItem( menu, SC_MINIMIZE, (gray ? MF_GRAYED : MF_ENABLED) );
|
||||
|
|
Loading…
Reference in a new issue