Partager via


CComboBoxEx::DeleteItem

Removes an item from a ComboBoxEx control.

int DeleteItem( 
   int iIndex  
);

Parameters

  • iIndex
    Zero-based index of the item to be removed.

Return Value

The number of items remaining in the control. If iIndex is invalid, the function returns CB_ERR.

Remarks

This member function implements the functionality of the message CBEM_DELETEITEM, as described in the Windows SDK. When you call DeleteItem, a WM_NOTIFY message with CBEN_DELETEITEM notification will be sent to the parent window.

Requirements

Header: afxcmn.h

See Also

Reference

CComboBoxEx Class

Hierarchy Chart