The SetCursorPos function moves the cursor to the specified screen coordinates. If the new coordinates are not within the screen rectangle set by the most recent ClipCursor function, Windows automatically adjusts the coordinates so that the cursor stays within the rectangle.
BOOL SetCursorPos(
int X, |
// horizontal position |
int Y |
// vertical position |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The cursor is a shared resource. A window should move the cursor only when the cursor is in its client area.
The calling process must have WINSTA_WRITEATTRIBUTES access to the window station.
ClipCursor, GetCursorPos, SetCaretPos, SetCursor, ShowCursor
file: /Techref/os/win/api/win32/func/src/f78.htm, 3KB, , updated: 2001/6/24 11:11, local time: 2024/11/24 01:34,
18.116.49.243:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/techref/os/win/api/win32/func/src/f78.htm"> SetCursorPos</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.