VioSetCurPos: Difference between revisions
Appearance
m Ak120 moved page OS2 API:CPI:VioSetCurPos to VioSetCurPos |
mNo edit summary |
||
Line 1: | Line 1: | ||
Sets the cursor's coordinates on the screen. | Sets the cursor's coordinates on the screen. | ||
==Syntax== | ==Syntax== | ||
VioSetCurPos(Row, Column, VioHandle); | |||
==Parameters== | ==Parameters== | ||
; Row (ULONG) - input : New cursor row position, where 0 is the top row. | ;Row (ULONG) - input : New cursor row position, where 0 is the top row. | ||
;Column (USHORT) - input : New cursor column position, where 0 is the leftmost column. | |||
; Column (USHORT) - input : New cursor column position, where 0 is the leftmost column. | ;VioHandle (HVIO) - input : VIO presentation-space handle. | ||
:This must be 0, unless the caller is a Presentation Manager application; in this case, it must be the value returned by [[VioCreatePS]]. | |||
; VioHandle (HVIO) - input : VIO presentation-space handle. | |||
This must be 0, unless the caller is a Presentation Manager application; in this case, it must be the value returned by VioCreatePS. | |||
==Return Code== | ==Return Code== | ||
rc (APIRET) - returns | rc (APIRET) - returns | ||
VioSetCurPos returns one of the following values: | VioSetCurPos returns one of the following values: | ||
* 0 NO_ERROR | * 0 NO_ERROR | ||
* 355 ERROR_VIO_MODE | * 355 ERROR_VIO_MODE | ||
Line 33: | Line 20: | ||
* 436 ERROR_VIO_INVALID_HANDLE | * 436 ERROR_VIO_INVALID_HANDLE | ||
[[Category:Vio]] | |||
[[Category: |
Revision as of 23:20, 26 February 2017
Sets the cursor's coordinates on the screen.
Syntax
VioSetCurPos(Row, Column, VioHandle);
Parameters
- Row (ULONG) - input
- New cursor row position, where 0 is the top row.
- Column (USHORT) - input
- New cursor column position, where 0 is the leftmost column.
- VioHandle (HVIO) - input
- VIO presentation-space handle.
- This must be 0, unless the caller is a Presentation Manager application; in this case, it must be the value returned by VioCreatePS.
Return Code
rc (APIRET) - returns
VioSetCurPos returns one of the following values:
- 0 NO_ERROR
- 355 ERROR_VIO_MODE
- 358 ERROR_VIO_ROW
- 359 ERROR_VIO_COL
- 421 ERROR_VIO_INVALID_PARMS
- 436 ERROR_VIO_INVALID_HANDLE