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_DELETEITEM (1.2)
◄Message Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINMENUS
MM_DELETEITEM
mp1 = MPFROM2SHORT((USHORT) idItem, (BOOL) fIncludeSubMenus);
mp2 = 0L; /* not used, must be zero */
An application sends an MM_DELETEITEM message to delete a menu item.
Parameter Description
────────────────────────────────────────────────────────────────────────────
idItem Low word of mp1. Identifies the item to delete.
fIncludeSubMenus High word of mp1. Specifies whether to include submenus in
the search for an item matching the idItem parameter. If
TRUE, the search includes all child menus. If FALSE, no
child menus are searched.
Return Value
The return value is the count of remaining menu items.
See Also
MM_INSERTITEM, MM_REMOVEITEM
♦