What is the recommended method to sort siblings in a tree view after label editing has been completed (without responding to TVN_ITEMCHANGED or other Vista+ notifications)?
Printable View
What is the recommended method to sort siblings in a tree view after label editing has been completed (without responding to TVN_ITEMCHANGED or other Vista+ notifications)?
hope to not reply when i dont know
Sibling: as in same level in the tree view hierarchy that share the same parent item.
By "without Vista+" I mean before Vista or later, as in available in XP. For example TVN_ITEMCHANGED and TVN_ITEMCHANGING according to the documentation are available in Windows Vista or later.
Basically all I was asking was if there was any recommended method to sort siblings after a successful label edit. By successful label edit, I mean TVN_ENDLABELEDIT returns TRUE. Sorting within TVN_ENDLABELEDIT does not yield correct results since TVN_ENDLABELEDIT must return TRUE before the item text is actually changed.
Currently I just use the TreeView_SetItem, TreeView_GetParent and TreeView_SortChildren macros to set the text, then sort the children of the parent within TVN_ENDLABELEDIT. Then I just don't return TRUE.
Thankyou for explaining, when it comes to windows I know only dialogs, buttons. Trees I haven’t tried.