I am working on an app which draws its own supplementary crosshair cursor and I need to know when the mouse has been moved or is about to moved outside the view, so I can delete the crosshair.
Printable View
I am working on an app which draws its own supplementary crosshair cursor and I need to know when the mouse has been moved or is about to moved outside the view, so I can delete the crosshair.
use SetCapture to ensure that you receive mouse messages even when the cursor is outside the window. You can then test all mouse_move positions to see if still inside the view. If not then release capture and erase crosshairs.
There is some message called WM_MOUSELEAVE. It's available in Win95.
See whether it helps u or not.