Can anyone shed some light on the following? I have a win32-gui treeview control with multiple nodes. Different nodes carry different properties and there exists two context popup menu when right clicked on the control. It all works well when a node is left clicked first then right clicked, the correct context menu comes up. However, when a node is right clicked without left clicked first, it gives the context menu of the previously selected node(which could be incorrect). I hope this is clear enough and I'd appreciate if someone can point me in the right direction. Thanks.