msgs12.hlp (Topic list)
MM_REMOVEITEM (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMENUS
 
MM_REMOVEITEM
mp1 = MPFROM2SHORT((USHORT) idItem, (BOOL) fIncludeSubMenus);
mp2 = 0L;    /* not used, must be zero */
 
An application sends an MM_REMOVEITEM message to remove a menu item.
 
Parameter         Description
────────────────────────────────────────────────────────────────────────────
 
idItem            Low word of mp1. Identifies the item to remove.
 
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 count of remaining menu items.
 
Comments
 
Unlike the MM_DELETEITEM message, the MM_REMOVEITEM message removes but does
not destroy the menu item. For example, after the MM_REMOVEITEM message is
sent, the menu item could be inserted into another menu.
 
See Also
 
MM_DELETEITEM