WM_ENTERMENULOOP

The WM_ENTERMENULOOP message informs an application's main window procedure that a menu modal loop has been entered.

WM_ENTERMENULOOP 
wParam = (BOOL) fIsTrackPopupMenu  // flags a shortcut menu 
lParam = 0 ;                       // not used; must be zero 
 

Parameters

fIsTrackPopupMenu
Specifies whether the window menu was entered using the TrackPopupMenu function. This parameter has a value of TRUE if the window menu was entered using TrackPopupMenu, and FALSE if it was not.

Return Values

An application should return zero if it processes this message.

Remarks

The DefWindowProc function returns zero.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Requires version 1.0 or later.
  Header: Declared in winuser.h.

See Also

Menus Overview, Menu Messages, DefWindowProc, WM_EXITMENULOOP