Set the default menu item of the window menu

This commit is contained in:
Juergen Schmied 1999-05-17 15:05:08 +00:00 committed by Alexandre Julliard
parent dd5b80e8ab
commit 9090502fda
1 changed files with 1 additions and 0 deletions

View File

@ -849,6 +849,7 @@ static BOOL MDI_AugmentFrameMenu( MDICLIENTINFO* ci, WND *frame,
EnableMenuItem(hSysPopup, SC_SIZE, MF_BYCOMMAND | MF_GRAYED);
EnableMenuItem(hSysPopup, SC_MOVE, MF_BYCOMMAND | MF_GRAYED);
EnableMenuItem(hSysPopup, SC_MAXIMIZE, MF_BYCOMMAND | MF_GRAYED);
SetMenuDefaultItem(hSysPopup, SC_CLOSE, FALSE);
/* redraw menu */
DrawMenuBar(frame->hwndSelf);