TVM_SORTCHILDRENCB
The
TVM_SORTCHILDRENCB message sorts tree-view items using an application-defined
callback function that compares the items. You can send this message explicitly
or by using the TreeView_SortChildrenCB macro.
TVM_SORTCHILDRENCB
wParam = 0;
// reserved for future use; must be zero
lParam = (LPARAM) (LPTV_SORTCB) psort;
Parameters
fRecurse
Reserved for
future use. Must be zero.
psort
Pointer to a TV_SORTCB structure. The lpfnCompare
member is the pointer to 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 TV_SORTCB.
Return Values
Returns TRUE
if successful or FALSE otherwise.
See Also