msgs12.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WM_INITMENU (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMESSAGEMGR
 
WM_INITMENU
id = SHORT1FROMMP(mp1);           /* menu identifier    */
hwnd = (HWND) HWNDFROMMP(mp2);    /* menu-window handle */
 
The WM_INITMENU message is sent when a menu is about to become active. This
allows the application to modify the menu before it is displayed.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
id         Low word of mp1. Specifies the menu identifier.
 
hwnd       Low and high word of mp2. Identifies the menu.
 
Return Value
 
An application should return zero if it processes this message.
 
See Also
 
MM_ISITEMVALID, WM_MENUEND