Mouse Button Messages
-
I know from all the standard written works of art that the Windows API knows about such things as WM_LBUTTONDOWN and WM_RBUTTONUP, but there are three-button desk rodents out there. Does the API define WM_MBUTTONDIDDLE or some such equivalent?
-
I know from all the standard written works of art that the Windows API knows about such things as WM_LBUTTONDOWN and WM_RBUTTONUP, but there are three-button desk rodents out there. Does the API define WM_MBUTTONDIDDLE or some such equivalent?
There's WM_MBUTTONxxx for the middle button (#3), and WM_XBUTTONxxx for all buttons after the third. The WM_XBUTTONxxx messages send an id to indicate which button was pressed. --Mike-- "Everyone has figured out what 'service pack' really means, so they had to go and change the language. Perhaps this is what Bill was talking about in the 'security is top priority' letter." -- Daniel Ferguson, 1/31/2002 My really out-of-date homepage Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan.
-
There's WM_MBUTTONxxx for the middle button (#3), and WM_XBUTTONxxx for all buttons after the third. The WM_XBUTTONxxx messages send an id to indicate which button was pressed. --Mike-- "Everyone has figured out what 'service pack' really means, so they had to go and change the language. Perhaps this is what Bill was talking about in the 'security is top priority' letter." -- Daniel Ferguson, 1/31/2002 My really out-of-date homepage Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan.
Ah, I see. Thanks, Mike!