msgs12.hlp (Topic list)
MM_QUERYSELITEMID (1.2)
Message Group  Overview  Changes                Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMENUS
 
MM_QUERYSELITEMID
mp1 = MPFROM2SHORT(0, (BOOL) fIncludeSubMenus);
mp2 = 0L;    /* must be zero */
 
An application sends an MM_QUERYSELITEMID message to determine the
identifier of the selected menu item.
 
Parameter         Description
────────────────────────────────────────────────────────────────────────────
 
fIncludeSubMenus  High word of mp1. Specifies whether to include submenus in
                  the search. A value of TRUE includes submenus.
 
Return Value
 
The return value is the identifier of the selected item, MIT_NONE if no item
is selected, or MID_ERROR if an error occurs.
 
See Also
 
MM_SELECTITEM