In Mac OS X's Cocoa Framework, there are Tracking Rects, which effectively allows you to register an area of your view and get callback messages when the mouse enters or leaves.
Is there a similar API in Windows? I'd like to avoid using a timer to call GetCursorPos() every x interval.
It could be that they're named something totally different and it's quite trivial, but I've failed to find anything so far.