I have a class derived from CTreeCtrl. In some circumstances the user might be editing it and I would like to programmatically cancel the edit which is currently in progress.
How do I do this? There doesn’t seem to be any appropriate function of the class which would do that, or if I have to send it some message it’s not immediately obvious to me what the message is that I should send.
I believe this is possible by sending the tree control the TVM_ENDEDITLABELNOW message, or by using the TreeView_EndEditLabelNow macro.