WM_INITMENUPOPUP
hmenuPopup = (HMENU) wParam; /* handle of pop-up menu */
uPos = (UINT) LOWORD(lParam); /* pop-up item position */
fSystemMenu = (BOOL) HIWORD(lParam); /* System-menu flag */
The WM_INITMENUPOPUP message is sent when a pop-up menu is about to become active. This allows an application to modify the pop-up menu before it is displayed, without changing the entire menu.
wParam
Value of wParam. Identifies the pop-up menu.
uPos
Value of the low-order word of lParam. Specifies the zero-based relative position of the menu item that invokes the pop-up menu.
fSystemMenu
Value of the high-order word of lParam. Specifies a nonzero value if the pop-up menu is the System menu; otherwise, this parameter is zero.
An application should return zero if it processes this message.
WM_INITMENU