Sign in to follow this  
thejoshinator

WM_MOUSELEAVE Message

Recommended Posts

Drew_Benton    1861
According to MSDN, a minimal OS of 'Windows 98' or 'Windows NT 4.0'. Since I assume you have either or and you have #include <windows.h>, make sure you have not done any of the #define VCLEANMEAN, etc.. Those might remove a few things that you need. Lastly what compiler are you using?

- Drew

Share this post


Link to post
Share on other sites
webjeff    241
Windows Messages are just defines, so at the top of your wndproc or wherever just put this:

#define WM_MOUSELEAVE 0x02A3

and you should be fine

Jeff.

Share this post


Link to post
Share on other sites
Quote:
Original post by Drew_Benton
According to MSDN, a minimal OS of 'Windows 98' or 'Windows NT 4.0'. Since I assume you have either or and you have #include <windows.h>, make sure you have not done any of the #define VCLEANMEAN, etc.. Those might remove a few things that you need. Lastly what compiler are you using?

- Drew


Drew was partly right here.

You have to define these values before you #include <windows.h>


// for NT4 min
#define WINVER 0x0400
#define _WIN32_WINNT 0x0400

// or for 98 min
#define WINVER 0x0410
#define _WIN32_WINNT 0x0410


See this msdn article about using the windows headers.

HTH,

Share this post


Link to post
Share on other sites
Quote:
Original post by thejoshinator
No, I have XP, but I think Evil Steve was right - I haven't updated in a while. Thanks for the quick replies!


This has nothing to do with your OS. These defines aloow you to use features that targets at least these OS. You can use XP to build programs that will target Win95 machines. Or you can use Win98 to build programs that will target only XP SP2.

Regards,

Share this post


Link to post
Share on other sites

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