VioGetCurPos: Difference between revisions
Appearance
m Ak120 moved page OS2 API:CPI:VioGetCurPos to VioGetCurPos |
mNo edit summary |
||
Line 2: | Line 2: | ||
==Syntax== | ==Syntax== | ||
VioGetCurPos(Row, Column, VioHandle) | |||
==Parameters== | ==Parameters== | ||
;Row (PULONG) - output : Row return data. | ;Row (PULONG) - output: Row return data. | ||
:Address of the current row position of the cursor, where 0 is the top row. | :Address of the current row position of the cursor, where 0 is the top row. | ||
;Column (PUSHORT) - output : Column return data. | ;Column (PUSHORT) - output: Column return data. | ||
:The address of the current column position of the cursor, where 0 is the leftmost column. | :The address of the current column position of the cursor, where 0 is the leftmost column. | ||
;VioHandle (HVIO) - input : Presentation-space handle. | ;VioHandle (HVIO) - input: Presentation-space handle. | ||
:This must be zero, unless the caller is a Presentation Manager application; in this case, it must be the value returned by VioCreatePS | :This must be zero, 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:VioGetCurPos returns one of the following values: | |||
VioGetCurPos returns one of the following values: | *0 NO_ERROR | ||
* 0 | *355 ERROR_VIO_MODE | ||
* 355 | *421 ERROR_VIO_INVALID_PARMS | ||
* 421 | *436 ERROR_VIO_INVALID_HANDLE | ||
* 436 | |||
[[Category:Vio]] | [[Category:Vio]] |
Revision as of 21:09, 1 January 2020
Returns the coordinates of the cursor.
Syntax
VioGetCurPos(Row, Column, VioHandle)
Parameters
- Row (PULONG) - output
- Row return data.
- Address of the current row position of the cursor, where 0 is the top row.
- Column (PUSHORT) - output
- Column return data.
- The address of the current column position of the cursor, where 0 is the leftmost column.
- VioHandle (HVIO) - input
- Presentation-space handle.
- This must be zero, unless the caller is a Presentation Manager application; in this case, it must be the value returned by VioCreatePS.
Return Code
- rc (APIRET) - returns
- VioGetCurPos returns one of the following values:
- 0 NO_ERROR
- 355 ERROR_VIO_MODE
- 421 ERROR_VIO_INVALID_PARMS
- 436 ERROR_VIO_INVALID_HANDLE