SEC_TREECLASS::SortChildren

BOOLSEC_TREECLASS::SortChildren(HTREEITEMhti, BOOLbRecursive, BOOLbAscending)

Sorts the child items of the given parent item in a tree view control.

Defined in: trcore.inl

Return Value

Nonzero if successful; otherwise 0.

Parameters

hti

Handle of the parent item whose child items are to be sorted.

bRecursive

If TRUE, sort all subtrees of this item. Default TRUE.

bAscending

Sort Ascending. Default TRUE.

Comments

Call this function to sort the child items of the given parent item in a tree view control. If hItem is NULL, the entire tree control is sorted.