Sign in to follow this  

Where's GET_WHEEL_DELTA_WPARAM at?

This topic is 4731 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

It should be declared in winuser.h, include windows.h to get it. Just remember to set your _WIN32_WINNT version high enough. IIRC 0x0400 is high enough, but it may need to be higher.

Share this post


Link to post
Share on other sites
Quote:
Original post by SiCrane
It should be declared in winuser.h, include windows.h to get it. Just remember to set your _WIN32_WINNT version high enough. IIRC 0x0400 is high enough, but it may need to be higher.


How do I set that? Never heard of that before. Thanks for the help though.

Share this post


Link to post
Share on other sites
It's just a normal pre-processor define. If you're using an IDE you can usually set it in the project properties somewhere. Alternately you can #define it before including windows.h.

Share this post


Link to post
Share on other sites
Beats me. I looked and didn't see anywhere to set this flag, and for some reason VC++ 2003.net can't find WM_MOUSEWHEEL either?

'WM_MOUSEWHEEL' : undeclared identifier

Share this post


Link to post
Share on other sites
Quote:
Original post by MARS_999
Quote:
Original post by SiCrane
It should be declared in winuser.h, include windows.h to get it. Just remember to set your _WIN32_WINNT version high enough. IIRC 0x0400 is high enough, but it may need to be higher.


How do I set that? Never heard of that before. Thanks for the help though.


#define _WIN32_WINNT 0x0400
#include <windows.h>

Share this post


Link to post
Share on other sites
Quote:
Original post by dalleboy
Quote:
Original post by MARS_999
Quote:
Original post by SiCrane
It should be declared in winuser.h, include windows.h to get it. Just remember to set your _WIN32_WINNT version high enough. IIRC 0x0400 is high enough, but it may need to be higher.


How do I set that? Never heard of that before. Thanks for the help though.


#define _WIN32_WINNT 0x0400
#include <windows.h>

Thanks that solved it!

Share this post


Link to post
Share on other sites

This topic is 4731 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this