How to check if the mouse is over a specific HWND? I tried using the WM_MOUSELEAVE and WM_MOUSEMOVE messages for tracking, but if you click on the button and pull the mouse out of the button, it will not receive WM_MOUSELEAVE until the mouse is released, which is too late because:
When you press the button, the WM_COMMAND message is sent only if:
1. The mouse was originally pressed above the button
2. The mouse is above the button
3. The mouse is released above the button
I need to replicate this functionality.
source
share