How To Detect When the Cursor Leaves the Window (183107)
The information in this article applies to:
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
- Microsoft Platform Software Development Kit (SDK) 1.0
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Server 4.0
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Workstation 4.0
- Microsoft Windows 95
- Microsoft Windows 98
This article was previously published under Q183107 SUMMARY
Microsoft Windows NT 4.0, Windows 2000 and Microsoft Windows 98 provide the
TrackMouseEvent API to notify a window that the mouse has left the window.
Windows 95 does not provide any such notification. An application can
detect when the mouse exits a window by starting a timer when the mouse
enters the window, and using that timer to monitor the mouse position and
find when it is no longer within the window.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbcode kbhowto kbInput kbWndw KB183107 |
---|
|