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_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
♦