Export (0) Print
Expand All
MFC
Expand Minimize

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);

Community Additions

ADD
Show:
© 2014 Microsoft