TreeView_SortChildren macro (commctrl.h)

Sorts the child items of the specified parent item in a tree-view control. You can use this macro or send the TVM_SORTCHILDREN message explicitly.

Syntax

void TreeView_SortChildren(
   hwnd,
   hitem,
   recurse
);

Parameters

hwnd

Type: HWND

Handle to the tree-view control.

hitem

Type: HTREEITEM

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

recurse

Type: BOOL

Not implemented; see remarks.

Return value

None

Remarks

This message alphabetizes the tree items using lstrcmpi on the item name. You can use the TVM_SORTCHILDRENCB message to customize the ordering behavior.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h