How do I to get a right click on a treeview node to behave like a left click in that it will highlight the node selected by the right click action?
Upon a right click I display a popup menu. Currently if I right click on a node which is not currently highlighted, it will display the menu for the node that is highlighted, and not the one I am clicking.
This would seem a reasonable thing to do as this is how it currently works in Windows explorer. ie) if you click on an item, then right click on a different item, the new item you right clicked will be highlighted, and the popup menu will be displayed for the new item.