WinSetPointerPos: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 56: | Line 56: | ||
[[ | [[Category:The_OS/2_API_Project| Back to OS/2 API]] | ||
[[Category:The OS/2 API Project]] | [[Category:The OS/2 API Project]] |
Revision as of 13:58, 20 October 2014
WinStartTimer
- WinSetPointerPos(desktopHndl, x, y)
- Set the pointer position.
Parameters
- desktopHndl - HWND - input
- The desktop handle whether HWND_DESKTOP or another valid value.
- x - LONG - input
- x-coordinate in pixels relative to the desktop's lower left corner in screen units.
- y - LONG - input
- y-coordinate in pixels relative to the desktop's lower left corner in screen units.
Constants
Returns
Returns BOOL:
WinGetLastError could return:
Module
Define (C/C++)
INCL_WINPOINTERS or INCL_PM or INCL_WIN
Export name/Ordinal
Calling conversion
Example Code
HWND desktopHndl; LONG x; LONG y; BOOL rc; ... rc = WinSetPointerPos(desktopHndl, x, y); ...
Related Functions
WinCreatePointer WinCreatePointerIndirect WinDestroyPointer WinDrawPointer WinLoadPointer WinQueryPointer WinQueryPointerInfo WinQueryPointerPos WinQuerySysPointer WinQuerySysPointerData WinSetPointer WinSetSysPointerData WinShowPointer