Share via


TreeView_SortChildrenCB (Compact 2013)

3/28/2014

This macro sorts tree-view items using an application-defined callback function that compares the items. You can use this macro or send the TVM_SORTCHILDRENCB message explicitly.

Syntax

BOOL TreeView_SortChildrenCB( 
    hwnd, 
    psort, 
    fRecurse 
);

Parameters

  • hwnd
    Handle to the tree view control.
  • psort
    Pointer to a TVSORTCB structure. The lpfnCompare member is the address of the application-defined callback function, which is called during the sort operation each time the relative order of two list items needs to be compared. For more information about the callback function, see the description of TVSORTCB.
  • fRecurse
    Reserved; set to 0 (zero).

Return Value

TRUE indicates success. FALSE indicates failure.

Requirements

Header

commctrl.h

See Also

Reference

Tree View Controls Macros
TVM_SORTCHILDRENCB
TVSORTCB