1.15.3 Positioning the Cursor

The SetCursorPos and GetCursorPos functions set and retrieve the current screen coordinates of the cursor. Although the cursor can be set at a location other than the current mouse location, if the system has a mouse, the next mouse movement will redraw the cursor at the mouse location. The SetCursorPos and GetCursorPos functions are most often used in applications that use the keyboard and specified keystrokes to move the cursor. Notice that screen coordinates are not affected by the mapping mode in a window's client area.