Freigeben über


CMFCPopupMenu::RemoveItem

Removes the specified item from the pop-up menu.

BOOL RemoveItem(
   int iIndex 
);

Parameters

  • [in] iIndex
    The zero-based index of the item to delete.

Return Value

TRUE if the method is successful; otherwise FALSE.

Remarks

This method automatically arranges any separators that are affected by the removal of an item. For more information about how the framework rearranges separators, see CMFCToolBar::RemoveButton.

Requirements

Header: afxpopupmenu.h

See Also

Reference

CMFCPopupMenu Class

Hierarchy Chart