News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Using the mouse

Started by RuiLoureiro, May 01, 2008, 03:06:11 PM

Previous topic - Next topic

RuiLoureiro

Hi all
        I have some problems to control the mouse wheel. Whats the code when the whell goes forward and backward ? I have only WM_MOUSEWHEEL (and WM_LBUTTONDOWN , WM_RBUTTONDOWN, etc.). Any one can help me ?
Thanks
Rui

jj2007

The documentation is here. But I have the same problem - this message does not work as described, although it might be dependent on drivers and OS version.

RuiLoureiro

Hi  jj2007
               Thank you so much ! It works fine.  Now i know that when we move the mouse wheel the windows sends the message WM_MOUSEWHEEL and if the high-order word of wParam is positive
the wheel was rotated forward (UP), if negative, backward (DOWN).
                Thanks !
Rui