Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Abob

WIN32 Mouse question

This topic is 5761 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

Is there a message sent to a window when the mouse leaves the window? Thanks for any help [edited by - Abob on September 12, 2002 12:14:14 AM]

Share this post


Link to post
Share on other sites
Advertisement
Some or all of the following could be of use (depending on exactly what it is you''re actually trying to achieve)

SetCapture()
TrackMouseEvent()
WM_CAPTURECHANGED
WM_MOUSELEAVE
WM_NCMOUSELEAVE
ReleaseCapture()

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
TrackMouseEvent()
and
WM_MOUSELEAVE
Are what I need, but VC++ cant seam to find TrackMouseEvent()
Anybody know what header it’s in?

Share this post


Link to post
Share on other sites
Including windows.h should be enough. If you still get compile or link errors, make sure you have the newest headers and libraries. You can download the Platform SDK somewhere at MSDN to get those.

The minimum operating system for WM_MOUSELEAVE and TrackMouseEvent is Windows 98 and Windows NT 4.0.

You can simulate a mouse leave with a combination of SetCapture and WM_MOUSEMOVE messages.

Share this post


Link to post
Share on other sites
I am running Windows ME with VC++ 6.0
So i dont know what the problem is.


error C2065: ''TrackMouseEvent'' : undeclared identifier

Share this post


Link to post
Share on other sites
quote:
Original post by Abob
I am running Windows ME with VC++ 6.0
So i dont know what the problem is.

error C2065: ''TrackMouseEvent'' : undeclared identifier


Ah. The header files which come with MSVC are for the Windows95 and WindowsNT Win32 API. At that time, Windows98 was still in beta and ME, 2000, XP weren''t announced.

You need the latest version of the Platform SDK which contains the newer headers, libs etc.

A temporary fix you can do is:

#define WINVER 0x500
#include <winuser.h>

Although you''ll get a warning message, the code should work fine.


--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
Could somebody help me with what SDK to download?
I looked it MSDN but I don’t know what it is I need.
I have a 56k modem so I cant just get the whole thing.

Thanks for any help.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!