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

    Tree Control Label Editing.





    Help me out !!


    I have added a CView derived view and it is having a CTreeCtrl derived child

    window control.


    I want to in-place edit the tree item text.

    but on the OnEndLabelEdit handler of the CTreeCtrl derived member in the

    View class,

    i get the "lpsztext" member of the TV_DISPINFO->item

    structure as NULL ??

    where i expect to get the newly edited text from the item....!!!

    What could be the reason behind this ??


    Please guide me on above issue !!


    waiting for reply,


    Thanks in advance.

    - Best regards,


    .ani

    <>





  2. #2
    Join Date
    Apr 1999
    Posts
    20

    Re: Tree Control Label Editing.



    First, you know you can use a CTreeView as your view, right?


    Second, make sure that when you create your treeview or tree control that you specify the TVS_EDITLABELS style bit.

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