Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Smithsonian on July 19, 2005, 09:10 PM

Title: [C++] Right click popups on a listview / rich text box
Post by: Smithsonian on July 19, 2005, 09:10 PM
Hey guys, I want to create my own pop up menu, and have it appear when I right click on my rich text box or list view. What notification message should I be looking for when I do this? I couldn't find it on MSDN. I found the function to make the menu appear, but I can't find which message is sent when I right click.

Anyone know?
Title: Re: [C++] Right click popups on a listview / rich text box
Post by: MyndFyre on July 19, 2005, 09:22 PM
This (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/mouseinput.asp) will help, and it's WM_RBUTTONDOWN (http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/userinput/mouseinput/mouseinputreference/mouseinputmessages/wm_rbuttondown.asp).

For the record, I went to MSDN, selected Win32 and COM Development, Platform SDK, Platform SDK Documentation, Windows User Interface, User Input, Mouse Input (which was the first link I provided).

Note that this would have been better-suited under General Programming or C/C++ programming, as this has absolutely nothing to do with Battle.net bot programming, except that you might use these controls in them.