Freigeben über


CListCtrl::DeleteAllItems

Deletes all items from the list view control.

BOOL DeleteAllItems( );

Return Value

Nonzero if successful; otherwise zero.

Example

    // Delete all of the items from the list view control.
    m_myListCtrl.DeleteAllItems();
    ASSERT(m_myListCtrl.GetItemCount() == 0);

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CListCtrl::InsertItem

CListCtrl::DeleteItem

Other Resources

CListCtrl Members