Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tree Control Editing Labels....

Status
Not open for further replies.

nexius

Programmer
Jul 8, 2000
109
CA
Hi. I have a few problems I can't figure out! If you can suggest anything I'd be very appreciative...

I'm trying to make a tree control, in which the user can only edit the leaves of the tree. I have no idea how to do this. I can stop the user from editing the labels in the tree by setting *pResult to 1 in TVN_BEGINLABELEDIT but beyond that... I'm lost.

Also I find that I can't finalize the changes made to a label since when I hit enter the entire dialog box closes automatically... I have no idea how to override this either.

Thanks for your time!

-Steve
 
Alright well I've solved the second problem (that is, keeping it up despite the user hitting enter/escape). I just caught it in PreTranslateMessage... But that still leaves the other one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top