Jump to content

WM NEXTMENU

From EDM2
Revision as of 04:07, 18 April 2025 by Martini (talk | contribs) (Related Messages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)