CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1

    Tree control - edit label

    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


  2. #2
    Join Date
    May 1999
    Posts
    116

    Re: Tree control - edit label

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured