|
Question : Rightclick on a node in a treeview
|
|
I have a treeview and I want to rightclick on a node, then a contextmenu appears and within the context menu one alternitive is to see the properties of the node(like you do in explorer). The problem is that when i catch the event, from the rightclicking, I get the values of the node that previously was selected (done by leftclick on a node). I wonder how you solve this problem so you don't have to first leftclick on a node and then rightclick again.
|
|
Answer : Rightclick on a node in a treeview
|
|
Yes, you're right, it should be the same...
Try using GetNodeAt method
treeNode=(TreeNodeclass*)this->GetNodeAt(e->X, e->Y);
|
|
|
|