WinShowPointer: Difference between revisions
Appearance
m Martini moved page OS2 API:WinShowPointer to OS2 API:PMI:WinShowPointer |
No edit summary |
||
Line 1: | Line 1: | ||
; WinShowPointer(desktopHndl, flagShow) : Show or hide the pointer. | ; WinShowPointer(desktopHndl, flagShow) : Show or hide the pointer. | ||
=== Parameters === | === Parameters === | ||
; desktopHndl - [[ | ;desktopHndl - [[HWND]] - input : [[HWND_DESKTOP]] or any other value - the desktop handle. | ||
; flagShow - [[ | ;flagShow - [[BOOL]] - input : | ||
* [[ | * [[TRUE]] - decrement the hide count. | ||
* [[ | * [[FALSE]] - increment the hide count. | ||
=== Returns === | === Returns === | ||
Returns [[ | Returns [[BOOL]]: | ||
* [[ | * [[TRUE]] Successful | ||
* [[ | * [[FALSE]] Unsuccessful | ||
[[ | [[WinGetLastError]] possible returns: | ||
* [[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 29: | Line 22: | ||
=== Example Code === | === Example Code === | ||
HWND desktopHndl; | |||
BOOL flagShow; | |||
BOOL rc; | |||
... | ... | ||
rc = WinShowPointer(desktopHndl, flagShow); | rc = WinShowPointer(desktopHndl, flagShow); | ||
Line 37: | Line 30: | ||
=== Related Functions === | === Related Functions === | ||
*WinCreatePointer | |||
[[ | *[[WinCreatePointerIndirect]] | ||
[[ | *[[WinDestroyPointer]] | ||
[[ | *[[WinDrawPointer]] | ||
[[ | *[[WinLoadPointer]] | ||
[[ | *[[WinQueryPointer]] | ||
[[ | *[[WinQueryPointerInfo]] | ||
[[ | *[[WinQueryPointerPos]] | ||
[[ | *[[WinQuerySysPointer]] | ||
[[ | *[[WinQuerySysPointerData]] | ||
[[ | *[[WinSetPointer]] | ||
*[[WinSetPointerPos]] | |||
*[[WinSetSysPointerData]] | |||
=== Notes === | === Notes === | ||
The pointer display level dictates the display of the pointer. The hide count needs to be zero for the pointer to display. At boot, if a pointing device exists, the pointer display level is set to zero; if a pointing device isn't detected, the pointer display level is set to one. To get the value of the pointing device call the [[ | The pointer display level dictates the display of the pointer. The hide count needs to be zero for the pointer to display. At boot, if a pointing device exists, the pointer display level is set to zero; if a pointing device isn't detected, the pointer display level is set to one. To get the value of the pointing device call the [[WinQuerySysValue]] specifying the [[OS2_API:Constant:SV#SV_POINTERLEVEL|SV_POINTERLEVEL]] option. | ||
[[Category: | [[Category:Win]] |
Revision as of 04:02, 4 January 2017
- WinShowPointer(desktopHndl, flagShow)
- Show or hide the pointer.
Parameters
- desktopHndl - HWND - input
- HWND_DESKTOP or any other value - the desktop handle.
- flagShow - BOOL - input
Returns
Returns BOOL:
WinGetLastError possible returns:
Define (C/C++)
INCL_WINPOINTERS or INCL_PM or INCL_WIN
Calling conversion
Example Code
HWND desktopHndl; BOOL flagShow; BOOL rc; ... rc = WinShowPointer(desktopHndl, flagShow); ...
Related Functions
- WinCreatePointer
- WinCreatePointerIndirect
- WinDestroyPointer
- WinDrawPointer
- WinLoadPointer
- WinQueryPointer
- WinQueryPointerInfo
- WinQueryPointerPos
- WinQuerySysPointer
- WinQuerySysPointerData
- WinSetPointer
- WinSetPointerPos
- WinSetSysPointerData
Notes
The pointer display level dictates the display of the pointer. The hide count needs to be zero for the pointer to display. At boot, if a pointing device exists, the pointer display level is set to zero; if a pointing device isn't detected, the pointer display level is set to one. To get the value of the pointing device call the WinQuerySysValue specifying the SV_POINTERLEVEL option.