Click to See Complete Forum and Search --> : Tree control - edit label


manjaly
June 1st, 1999, 12:22 AM
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

BrianOG
June 1st, 1999, 02:28 AM
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.