Home
Tutorials
Code Snippets
Code Samples
Downloads
Links

The Blog
Our Projects
About
Contact

::Add RageStorm to Favorites!::

The Blog | Our Projects | Guest Book | About | Contact

 
Code Snippet - onMouseLeave
Author:Arkon
Category:Win32API
File Size:453 Bytes
Uploaded at:27-Nov-02 02:31:45 pm
Description:
  Well this is not HTML, but it's very close to it. Get notified when the mouse leaves a defined rectangular area.
  
//This code will notify you when the mouse cursor leaves the window area.

case WM_MOUSEMOVE:
 // Set the event for next movement
 TRACKMOUSEEVENT trackmouseevent;
 trackmouseevent.cbSize = sizeof(trackmouseevent);
 trackmouseevent.dwFlags = TME_LEAVE;
 trackmouseevent.hwndTrack = hWnd;
 trackmouseevent.dwHoverTime = HOVER_DEFAULT;
 _TrackMouseEvent(&trackmouseevent);
break;
case WM_MOUSELEAVE:
 // Mouse just left the window area
break;
User Contributed Comments(1)
 [1] vador | 2007-07-23 04:30:23

very useful. i really needed this to implement my user interface. thank you very much
NOTE:
Comments that will hurt anyone in any way will be deleted.
Don't ask for features, advertise or curse.
If you want to leave a message to the author use the contacts,
if you have any question in relation to your comments please use the forum.
Comments which violate any of these requests will be deleted without further
notice. Use the comment system decently.

Post your comment:
Name:
email:
Comment:
::Top 5 Tutorials::
Embedded Python[105418]
2D Rotated Rectangles Collision Detection[78723]
Keyboard Hook[68414]
UDP[52506]
HTTP Proxy[35823]

::Top 5 Samples::
2D ColDet Rotated Rectangles[10562]
PS2 Mouse Driver[6063]
Wave Format Player[4945]
Reading FAT12[4828]
CodeGuru[4521]


All rights reserved to RageStorm © 2009