Now that we've defined a popup, lets check out how to use it. A popup should appear when the event of a right mouse click happens over a control. There are several messages that can be used to intercept a mouse click. The other three could be used to initiate the popup. However, there is one problem.
People can be right and left handed.
This can even be mapped to a double-click. Of course the mouse settings can be queried from the system. This sounds like a lot of work, besides it isn't very elegant. So let's check a little further. This is a message that occurs when the user requests a popup menu.