MM_ITEMPOSITIONFROMID (1.2)
◄Message Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINMENUS
MM_ITEMPOSITIONFROMID
mp1 = MPFROM2SHORT((USHORT) idItem, (BOOL) fIncludeSubMenus);
mp2 = 0L; /* not used, must be zero */
An application sends an MM_ITEMPOSITIONFROMID message to determine the
position of a menu item in the menu list.
Parameter Description
────────────────────────────────────────────────────────────────────────────
idItem Low word of mp1. Identifies the menu item.
fIncludeSubMenus High word of mp1. Specifies whether to include submenus in
the search for an item that matches the idItem parameter.
Return Value
The return value is the zero-based index of the item specified in idItem, or
it is MIT_NONE if the item does not exist.
See Also
MM_ITEMIDFROMPOSITION
♦