This documentation is archived and is not being maintained.

CListCtrl::DeleteAllItems 

Deletes all items from the list view control.


BOOL DeleteAllItems( );

Nonzero if successful; otherwise zero.

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

// Delete all of the items from the list view control.
pmyListCtrl->DeleteAllItems();
ASSERT(pmyListCtrl->GetItemCount() == 0);
Show: