Hi,
I'm trying to implement a context sensitive popup menu for my CTreeCtrl Control. I know how to implement the context menu, it's just finding out which item has been clicked on.
I have a function for the NM_RCLICK message which is called every time I right Click in the Control.
My problem is, I don't know how to tell which item is being rightclicked on. If I can get the point, I can use CTreeCtrl's HitTest Function to get my item.
Does anyone know how to get my mouse position when I right click?? Or, a better way to context menus in a CTreeCtrl?
Thanks,
- Mike -
I'm trying to implement a context sensitive popup menu for my CTreeCtrl Control. I know how to implement the context menu, it's just finding out which item has been clicked on.
I have a function for the NM_RCLICK message which is called every time I right Click in the Control.
My problem is, I don't know how to tell which item is being rightclicked on. If I can get the point, I can use CTreeCtrl's HitTest Function to get my item.
Does anyone know how to get my mouse position when I right click?? Or, a better way to context menus in a CTreeCtrl?
Thanks,
- Mike -