CListBox::DeleteString

int DeleteString( UINT nIndex );

Return Value

A count of the strings remaining in the list. The return value is LB_ERR if nIndex specifies an index greater than the number of items in the list.

Parameters

nIndex

Specifies the zero-based index of the string to be deleted.

Remarks

Deletes an item in a list box.

Example

// The pointer to my list box.
extern CListBox* pmyListBox;

// Delete every other item from the list box.
for (int i=0;i < pmyListBox->GetCount();i++)
{
   pmyListBox->DeleteString( i );
}

CListBox OverviewClass MembersHierarchy Chart

See Also   LB_DELETESTRING, CListBox::AddString, CListBox::InsertString