CTreeCtrl::SortChildren
BOOLSortChildren(HTREEITEMhItem );
Return Value
Nonzero if successful; otherwise 0.
Parameters
hItem
Handle of the parent item whose child items are to be sorted. If hItem is NULL, sorting will proceed from the root of the tree.
Remarks
Call this function to sort the child items of the given parent item in a tree view control. SortChildren will not recurse through the tree; only the immediate children of hItem will be sorted.
Example
// The pointer to my tree control.
extern CTreeCtrl* pmyTreeCtrl;
// Sort all of the items in the tree control.
pmyTreeCtrl->SortChildren(TVI_ROOT);
CTreeCtrl Overview | Class Members | Hierarchy Chart
See Also CTreeCtrl::SortChildrenCB