WinSetPointerPos: Difference between revisions
Appearance
m Ak120 moved page OS2 API:PMI:WinSetPointerPos to WinSetPointerPos |
mNo edit summary |
||
Line 3: | Line 3: | ||
=== Parameters === | === Parameters === | ||
; desktopHndl - [[ | ; desktopHndl - [[HWND]] - input : The desktop handle whether [[HWND_DESKTOP]] or another valid value. | ||
; x - [[ | ; x - [[LONG]] - input : x-coordinate in pixels relative to the desktop's lower left corner in screen units. | ||
; y - | ; y - LONG - input : y-coordinate in pixels relative to the desktop's lower left corner in screen units. | ||
=== Returns === | === Returns === | ||
Returns [[ | Returns [[BOOL]]: | ||
* [[ | *[[TRUE]] Successful | ||
* [[ | *[[FALSE]] Unsuccessful | ||
[[ | [[WinGetLastError]] could return: | ||
* [[OS2 API:PMI:error#PMERR_INVALID_HWND|PMERR_INVALID_HWND]] | * [[OS2 API:PMI:error#PMERR_INVALID_HWND|PMERR_INVALID_HWND]] | ||
=== Define (C/C++) === | === Define (C/C++) === | ||
INCL_WINPOINTERS or INCL_PM or INCL_WIN | INCL_WINPOINTERS or INCL_PM or INCL_WIN | ||
=== Calling conversion === | === Calling conversion === | ||
Line 28: | Line 22: | ||
=== Example Code === | === Example Code === | ||
HWND desktopHndl; | |||
LONG x; | |||
LONG y; | |||
BOOL rc; | |||
... | ... | ||
rc = WinSetPointerPos(desktopHndl, x, y); | rc = WinSetPointerPos(desktopHndl, x, y); | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[WinCreatePointer]] | ||
[[ | *[[WinCreatePointerIndirect]] | ||
[[ | *[[WinDestroyPointer]] | ||
[[ | *[[WinDrawPointer]] | ||
[[ | *[[WinLoadPointer]] | ||
[[ | *[[WinQueryPointer]] | ||
[[ | *[[WinQueryPointerInfo]] | ||
[[ | *[[WinQueryPointerPos]] | ||
[[ | *[[WinQuerySysPointer]] | ||
[[ | *[[WinQuerySysPointerData]] | ||
[[ | *[[WinSetPointer]] | ||
*[[WinSetSysPointerData]] | |||
*[[WinShowPointer]] | |||
[[Category: | [[Category:Win]] |
Revision as of 09:22, 6 January 2017
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.
Returns
Returns BOOL:
WinGetLastError could return:
Define (C/C++)
INCL_WINPOINTERS or INCL_PM or INCL_WIN
Calling conversion
Example Code
HWND desktopHndl; LONG x; LONG y; BOOL rc; ... rc = WinSetPointerPos(desktopHndl, x, y);