CListBox::DeleteString

Syntax

int DeleteString( UINT nIndex );

Parameters

nIndex

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

Remarks

Deletes an item in a list box.

Return Value

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

See Also

LB_DELETESTRING, CListBox::AddString, CListBox::InsertString