Collapsing all branches
Posted
by Zafir Anjum
on August 6th, 1998
// CollapseAll - Collapses the complete outline.
void CTreeCtrlX::CollapseAll()
{
HTREEITEM hti = GetRootItem();
do{
CollapseBranch( hti );
}while( (hti = GetNextSiblingItem( hti )) != NULL );
}
This uses the function we developed for collapsing a branch. It goes through
all the root items and collapses them.

Comments
How to create a treeview and display it in list view ?
Posted by pean on 05/23/2007 01:35amcan you guid specific me how to create a treeview and display it in list view ?
ReplyWhat about TVE_COLLAPSERESET?
Posted by Legacy on 02/24/2004 12:00amOriginally posted by: Ralf A.
ReplyGood tip~
Posted by Legacy on 12/03/2002 12:00amOriginally posted by: grinbee
thanx man~
Replyfor the good tip...