right click menu

Hi,
I have a problem as I do not know how to create a right click menu...
I want to have a menu displayed when I right click on a tree view item..
I am using visual studio 2008
Anyone can guide me in the right direction?
If you are using the WINAPI then trap the WM_CONTEXTMENU message
and use the TrackPopupMenu api function.

Start by reading here
http://msdn.microsoft.com/en-us/library/ms647592%28v=vs.85%29.aspx
These tutorials really helped me understand basic WINAPI stuff. Scroll down the page a bit for right click menu tutorial.

http://zetcode.com/tutorials/winapi/menustoolbars/
Last edited on
Topic archived. No new replies allowed.