Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Context Sensitive Right Click within Tree View

Status
Not open for further replies.

milner

Programmer
Apr 15, 1999
28
CA
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 -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top