I need to know when the mouse is leaving a window in an MFC program... I watch WM_MOUSEMOVE but the last I hear from that is the last point the mouse is at while still inside the window (often not very helpful). None of the other WM events I've tried seem to be able to tell me this... does anyone know how to do it? I'm thinking I could SetCapture the window, then watch WM_MOUSEMOVE for coordinates outside the window and ReleaseCapture, but it seems like a lot of work for something that should be so simple.
Please reply if you have any ideas.