Possible small bug in SortChildrenCB
Brought to you by:
nenadstefanovic
SortChildrenCB receives these arguments and passes them to TVM_SORTCHILDRENCB:
LPTVSORTCB pSort, BOOL bRecurse = FALSE
But MSDN says:
wParam - Reserved. Must be zero.
So I think bRecurse
is a mistake, perhaps copied from SortChildren
? Not too bad since the default is zero anyway, just can be confusing.
Anonymous
This is an unfortunate situation. Documetation is correct, and bRecurse was copied from TreeView_SortChildrenCB macro.
The best would be to modify the method like this:
Cheers,
Nenad