China Naming Network - Ziwei Dou Shu - How does vc++ get the position of the mouse pointer in the window
How does vc++ get the position of the mouse pointer in the window
When the mouse moves on the window, a mousemove message will be generated. In this message, the position of the mouse can be obtained. This coordinate is relative to the client area. getcursorpos can also get the current position of the mouse, which is relative to screen coordinates. Please refer to MSDN for details