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