I have an application where I want something different to happen depending on whether a user either left or right clicks on a Win32 button. The button is created like:
CreateWindow("button", NULL, WS_CHILD | BS_ICON......etc
I can easily detect when the button is left clicked on by trapping the WM_COMMAND event and finding which component generated the event. But how do I detect when the button is right-clicked on instead?