msgs12.hlp (Topic list)
MM_SETITEMHANDLE (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMENUS
 
MM_SETITEMHANDLE
mp1 = MPFROMSHORT((SHORT) idItem);     /* item index  */
mp2 = MPFROMLONG((ULONG) ulHandle);    /* item handle */
 
An application sends an MM_SETITEMHANDLE message to set the handle of a menu
item. It is used to set the display object, such as a bitmap, for menu items
that do not have the style MIS_TEXT.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
idItem     Low word of mp1. Specifies the index of the item.
 
ulHandle   Low and high word of mp2. Specifies the handle of the item.
 
Return Value
 
The return value is TRUE if the operation is successful or FALSE if an error
occurs.
 
                                      ♦