Compartilhar via


CTreeCtrl::DeleteAllItems

Call this function to delete all items from the tree view control.

BOOL DeleteAllItems( );

Return Value

Nonzero if successful; otherwise 0.

Example

// The underlying Windows API always returns TRUE
VERIFY(m_TreeCtrl.DeleteAllItems());

Requirements

Header: afxcmn.h

See Also

Reference

CTreeCtrl Class

Hierarchy Chart

CTreeCtrl::DeleteItem

CTreeCtrl::InsertItem

Other Resources

CTreeCtrl Members