I am having trouble getting a TreeView to respond to a right mouse click. Both FORM1_TREEVIEW1_WM_CONTEXTMENU and FORM1_TREEVIEW1_WM_RBUTTONUP respond to a double right mouse click, but not to a single click. Can anyone explain ?
Thanks,
Robert
Maybe try this code instead: http://www.planetsquires.com/protect/forum/index.php?topic=1935.msg15937
Paul,
I think that the code only works for "leaf" nodes that have no children nodes. But it does not work for nodes that do have children. I want to trap right-clicks on any node. The only way I have found that works is using the %WM_CONTEXTMENU case. But I have not found a way to trap double right-clicks.
Thanks,
Robert