WIN32 Mouse question
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]
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
SetCapture()
TrackMouseEvent()
WM_CAPTURECHANGED
WM_MOUSELEAVE
WM_NCMOUSELEAVE
ReleaseCapture()
--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
TrackMouseEvent()
and
WM_MOUSELEAVE
Are what I need, but VC++ cant seam to find TrackMouseEvent()
Anybody know what header it’s in?
and
WM_MOUSELEAVE
Are what I need, but VC++ cant seam to find TrackMouseEvent()
Anybody know what header it’s in?
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.
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.
I am running Windows ME with VC++ 6.0
So i dont know what the problem is.
error C2065: ''TrackMouseEvent'' : undeclared identifier
So i dont know what the problem is.
error C2065: ''TrackMouseEvent'' : undeclared identifier
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement