int DeleteString( UINT nIndex );
Return Value
If the return value is greater than or equal to 0, then it is a count of the strings remaining in the list. The return value is CB_ERR if nIndex specifies an index greater then the number of items in the list.
Parameters
nIndex
Specifies the index to the string that is to be deleted.
Remarks
Deletes a string in the list box of a combo box.
Example
// The pointer to my combo box.
extern CComboBox* pmyComboBox;
// Delete every other item from the combo box.
for (int i=0;i < pmyComboBox->GetCount();i++)
{
pmyComboBox->DeleteString( i );
}
CComboBox Overview | Class Members | Hierarchy Chart
See Also CComboBox::InsertString, CComboBox::AddString, CB_DELETESTRING