Share via


CMFCRibbonComboBox::DeleteItem

Deletes a specified item from the list box.

BOOL DeleteItem(
   int iIndex 
);
BOOL DeleteItem(
   DWORD_PTR dwData 
);
BOOL DeleteItem(
   LPCTSTR lpszText 
);

Parameters

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

  • [in] dwData
    The data associated with the item to be deleted.

  • [in] lpszText
    The string of the item to be deleted. If there are multiple items with the same string, the first item is deleted.

Return Value

TRUE if the specified item has been deleted; otherwise, FALSE.

Requirements

Header: afxribboncombobox.h

See Also

Reference

CMFCRibbonComboBox Class

Hierarchy Chart