Export (0) Print
Expand All
Expand Minimize

CListCtrl::DeleteAllItems

Deletes all items from the list view control.

BOOL DeleteAllItems( );

Return Value

Nonzero if successful; otherwise zero.

Example

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

See Also

CListCtrl Overview | Class Members | Hierarchy Chart | CListCtrl::InsertItem | CListCtrl::DeleteItem

Show:
© 2015 Microsoft