I want to change the text of a tree control label when user starts editting. For example, let the tree node label is 'Name(100)'. When
user clicks Rename, the label should become 'Name' and not Name(100). How to do this?
Thanks in advance.
-Tony
Printable View
I want to change the text of a tree control label when user starts editting. For example, let the tree node label is 'Name(100)'. When
user clicks Rename, the label should become 'Name' and not Name(100). How to do this?
Thanks in advance.
-Tony
Catch the TVN_BEGINLABELEDIT message from the tree, and modify the string before the editbox appears. Then in the TVN_ENDLABELEDIT you can modify the string again.