Mousewheel input

Started by
3 comments, last by Antheus 18 years, 1 month ago
I'm having trouble getting scrolling input from the mousewheel. The only thing I've been able to find is WM_MOUSEWHEEL, but I get an undeclared identifier error message when I use it. I guess that I need to include a certain header to use it, but I have no idea what. Anyone know?
____________________________________________________________Programmers Resource Central
Advertisement
winuser.h
Nothing.
____________________________________________________________Programmers Resource Central
Quote:
MSDN:
These values must be defined to handle the WM_MOUSEHWHEEL on
Windows 2000 and Windows XP, the first two values will be defined
in the Longhorn SDK and the last value is a default value
that will not be defined in the Longhorn SDK but will be needed for
handling WM_MOUSEHWHEEL messages emulated by IntelliType Pro
or IntelliPoint (if implemented in future versions).
#define WM_MOUSEWHEEL 0x020E


- xeddiex
one..
Quote:Original post by xeddiex
Quote:
MSDN:
These values must be defined to handle the WM_MOUSEHWHEEL on
Windows 2000 and Windows XP, the first two values will be defined
in the Longhorn SDK and the last value is a default value
that will not be defined in the Longhorn SDK but will be needed for
handling WM_MOUSEHWHEEL messages emulated by IntelliType Pro
or IntelliPoint (if implemented in future versions).
#define WM_MOUSEWHEEL 0x020E


- xeddiex


Well, seems that WM_MOUSEWHEEL support is limited:

// winuser.h#if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)#define WM_MOUSEWHEEL                   0x020A#endif


So, WinNT 4.0 and above, Windows 98 and above.

This topic is closed to new replies.

Advertisement