Author: jimtabor
Date: Fri May 16 18:26:00 2014
New Revision: 63315
URL:
http://svn.reactos.org/svn/reactos?rev=63315&view=rev
Log:
[ConSrv]
- Strip the Atl-F4 from the Pop Up System Menu since we do not support it.
Modified:
trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
Modified: trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/winsrv/consrv…
==============================================================================
--- trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c [iso-8859-1]
(original)
+++ trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c [iso-8859-1] Fri May
16 18:26:00 2014
@@ -253,9 +253,15 @@
static VOID
CreateSysMenu(HWND hWnd)
{
+ MENUITEMINFOW mii;
HMENU hMenu = GetSystemMenu(hWnd, FALSE);
if (hMenu != NULL)
{
+ mii.cbSize = sizeof(mii);
+ mii.fMask = MIIM_STRING;
+ mii.dwTypeData = L"&Close";
+ SetMenuItemInfoW(hMenu, SC_CLOSE, FALSE, &mii);
+
AppendMenuItems(hMenu, GuiConsoleMainMenuItems);
DrawMenuBar(hWnd);
}