Bagikan melalui


CMFCToolBarComboBoxButton::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 text of the item to be deleted. If there are multiple items with the same text, the first item is deleted.

Return Value

TRUE if the item was located and successfully deleted; otherwise, FALSE.

Requirements

Header: afxtoolbarcomboboxbutton.h

See Also

Reference

CMFCToolBarComboBoxButton Class

Hierarchy Chart