Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I met a problem in MFC, what I want to do is only when I right click the node to popup a menu to add new node and edit my tree nodes,but now even I stay one node for a while ,it still can edit node label, so what should I do to disable label edit property and when I right click nodes to enable label edit property.If anyone can help me out, I will be appreciate.
Posted

You can use the TVN_BEGINLABELEDIT notification to cancel the edit when unwanted.

more details at MSDN:
TVN_BEGINLABELEDIT notification code (Windows)
 
Share this answer
 
set a bool variable isLabelEdit to control what time to enable and disable label edit property
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900