msgs12.hlp (Topic list)
MM_ITEMIDFROMPOSITION (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMENUS
 
MM_ITEMIDFROMPOSITION
mp1 = MPFROMSHORT((SHORT) iItem);     /* item index             */
mp2 = 0L;                             /* not used, must be zero */
 
The menu control responds to an MM_ITEMIDFROMPOSITION message by returning
the identity of the item whose position is specified by the iItem parameter,
or MID_ERROR if iItem is invalid.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
iItem      Low word of mp1. Specifies the index of the item in the menu
           list.
 
Return Value
 
The return value is the identity of the item whose position is specified by
iItem, or it is MID_ERROR if iItem is invalid.
 
See Also
 
MM_ITEMPOSITIONFROMID