BOOL DeleteAllItems( );
Return Value
Nonzero if successful; otherwise 0.
Remarks
Call this function to delete all items from the tree view control.
Example
// Gain a pointer to our tree control.
CTreeCtrl* pCtrl = (CTreeCtrl*) GetDlgItem(IDC_TREE1);
// The underlying Windows API always returns TRUE
VERIFY(pCtrl->DeleteAllItems());
CTreeCtrl Overview | Class Members | Hierarchy Chart
See Also CTreeCtrl::DeleteItem, CTreeCtrl::InsertItem