Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.84 KB

tvm-sortchildren.md

File metadata and controls

62 lines (39 loc) · 1.84 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TVM_SORTCHILDREN message (Commctrl.h)
Sorts the child items of the specified parent item in a tree-view control. You can send this message explicitly or by using the TreeView\_SortChildren macro.
c18bcd5f-c083-46ee-873b-d3100b0d7b04
TVM_SORTCHILDREN message Windows Controls
apiref
TVM_SORTCHILDREN
Commctrl.h
HeaderDef
reference
05/31/2018

TVM_SORTCHILDREN message

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

Parameters

wParam

Value that specifies whether the sorting is recursive. Set wParam to TRUE to sort all levels of child items below the parent item. Otherwise, only the parent's immediate children are sorted.

lParam

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

Return value

Returns TRUE if successful, or FALSE otherwise.

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]
Header
Commctrl.h