WM INITMENU
Appearance
This message occurs when a menu control is about to become active.
Syntax
param1 SHORT smenuid; /* Menu-control identifier. */ param2 HWND hwnd; /* Menu-window handle. */
Parameters
- smenuid (SHORT) - input
- Menu-control identifier.
- hwnd (HWND) - input
- Menu-window handle.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
Returns
- ulReserved (ULONG) - returns
- Reserved value, should be 0.
Remarks
in Frame Controls
The identity of the top-level action-bar menu that generated this message is found. If the identity is FID_MENU, the message is passed to the window with identity FID_CLIENT. If the identity is FID_SYSMENU the system menu state is initialized according to the current state of the window.
in Menu Controls
This message offers the owner the opportunity to perform some initialization on the menu items before they are presented.
The menu control window procedure generates this message and sends it to its owner, informing the owner of the event.
Default Processing
The default window procedure takes no action on this message, other than to set ulReserved to 0.
Related Messages
- WM_INITMENU (in Frame Controls)
- WM_INITMENU (in Menu Controls)