WM NEXTMENU
Appearance
This message occurs when either the beginning or the end of the menu is reached by use of the cursor control keys.
Syntax
param1 HWND hwndMenu; /* Menu-control window handle. */ param2 USHORT usPrev; /* Previous-menu indicator. */
Parameters
- hwndMenu (HWND) - input
- Menu-control window handle.
- usPrev (USHORT) - input
- Previous-menu indicator.
- TRUE: Beginning of the menu has been reached
- FALSE: End of the menu has been reached
Returns
- hwndNewMenu (HWND) - returns
- New menu window handle.
- NULLHANDLE: No new menu
- Other: New menu window handle
Remarks
in Frame Controls
The frame control window procedure processes the message by returning the handle of the system menu window if hwndMenu is the handle of the main action bar window, or by returning the handle of the main action bar window if hwndMenu is the handle of the system menu window.
in Menu Controls
The menu control generates this message and sends it to its owner, informing the owner of this event.
Default Processing
The default window procedure takes no action on this message, other than to set hwndNewMenu to NULLHANDLE.
Related Messages
- WM_NEXTMENU (in Frame Controls)
- WM_NEXTMENU (in Menu Controls)