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.
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