Treeview right click

Miscellaneous Forums/Win32 Discussion/Treeview right click

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Yay! A problem, and it's all Windows' fault!
Thanks to Kev, I now have popup menus working. However, I still have a problem -- To get them to display, I have to tell Windows to do so myself. I have to call TrackPopupMenu when my program recieves a WM_RButtonUp message. I hope that I am wrong. If I am wrong, please correct me.
The problem with using WM_RButtonUp to solve my problem is because, for some stupid reason known only by satan himself, treeviews do not recieve WM_RButtonUp messages whenever they happen. (Generally I have to right click a few times really fast. No, it is not a double-click message). They do, however, always recieve WM_LButtonUp messages whenever they happen.
So, I need any of the following:
- A simple way to recieve a WM_RBUTTONUP message, whenever it happens, with a treeview.
- A way to tell Windows that a popup menu belongs to a gadget, so that I do not need to pop it up myself.
- A message that is sent to a window to tell it to open a popup menu.