다음을 통해 공유


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

Concepts

CComboBoxEx Class

CComboBoxEx Members

Hierarchy Chart