◄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 ♦