CListCtrl::DeleteItem

BOOL DeleteItem( int nItem );

Return Value

Nonzero if successful; otherwise zero.

Parameters

nItem

Specifies the index of the item to be deleted.

Remarks

Call this function to delete an item from a list view control.

Example

// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;

int nCount = pmyListCtrl->GetItemCount();

// Delete all of the items from the list view control.
for (int i=0;i < nCount;i++)
{
   pmyListCtrl->DeleteItem(0);
}

CListCtrl OverviewClass MembersHierarchy Chart

See Also   CListCtrl::InsertItem, CListCtrl::DeleteAllItems