SetCursorPos and WM_MOUSEMOVE
-
hello. i have overriden WindowProc for CButton-derived control and handle WM_MOUSEMOVE message in message handler i call ::SetCursorPos all i want to know is: does ::SetCursorPos function send WM_MOUSEMOVE message or not? thanks in advance nobody is perfect
-
hello. i have overriden WindowProc for CButton-derived control and handle WM_MOUSEMOVE message in message handler i call ::SetCursorPos all i want to know is: does ::SetCursorPos function send WM_MOUSEMOVE message or not? thanks in advance nobody is perfect
AFIAK it sends the WM_MOUSEMOVE message to the window that contains the cursor's new position, but not to the window that contains the cursors old position.
CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!
-
AFIAK it sends the WM_MOUSEMOVE message to the window that contains the cursor's new position, but not to the window that contains the cursors old position.
CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!
-
What about it?
CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!
-
i meant that if i SetCapture in CButton-derived control and in its WM_MOUSEMOVE message handler call ::SetCursorPos, will this control receive MW_MOUSEMOVE again? nobody is perfect
Yes, I believe so. Any window that has captured the mouse will receive all mouse messages.
CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!