Experimental checkin: re-enable support for the static WM_MOUSEWHEEL
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 17 Jan 2002 12:22:26 +0000 (12:22 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 17 Jan 2002 12:22:26 +0000 (12:22 +0000)
even on systems where the version number check thinks we should be
expecting a dynamically registered message number. I have a
suspicion the version check isn't accurate in all circumstances; and
in any case, in a situation like this where Windows might send you
either of two things, it's better to be ready to deal with both than
to try and second-guess which one you'll get.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1549 cda61777-01e9-0310-a592-d414129be87e

window.c

index 1b7f608..4bcc269 100644 (file)
--- a/window.c
+++ b/window.c
@@ -2434,7 +2434,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
            return TRUE;
        }
       default:
-       if (message == wm_mousewheel) {
+       if (message == wm_mousewheel || message == WM_MOUSEWHEEL) {
            int shift_pressed=0, control_pressed=0, alt_pressed=0;
 
            if (message == WM_MOUSEWHEEL) {