Click to See Complete Forum and Search --> : Tree Control Label Editing.


Anirudha Choudhari
March 31st, 1999, 10:37 AM
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

<>

Kevin Delgado
March 31st, 1999, 11:08 AM
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.