Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:docs:fapi:viogetcurpos [2021/08/20 08:04] – prokushev | en:docs:fapi:viogetcurpos [2021/09/19 02:09] (current) – prokushev | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{page> | {{page> | ||
| + | |||
| + | ====== VioGetCurPos ====== | ||
| This call returns the coordinates of the cursor. | This call returns the coordinates of the cursor. | ||
| - | ==Syntax== | + | ===== Syntax ===== |
| - | | + | <code c> |
| + | VioGetCurPos (Row, Column, VioHandle) | ||
| + | </ | ||
| - | ==Parameters== | + | ===== Parameters ===== |
| - | ;Row (PUSHORT) - output : Address of the current Row position of the cursor where 0 is the top row. | + | |
| - | ;Column (PUSHORT) - output : Address of the current column position of the cursor where 0 is the leftmost column. | + | * Row ([[PUSHORT]]) - output : Address of the current Row position of the cursor where 0 is the top row. |
| - | ;VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, | + | * Column ([[PUSHORT]]) - output : Address of the current column position of the cursor where 0 is the leftmost column. |
| + | * VioHandle ([[HVIO]]) - input : This must be zero unless the caller is a Presentation Manager application, | ||
| + | |||
| + | ===== Return Code ===== | ||
| + | |||
| + | rc ([[USHORT]]) - return | ||
| - | ==Return Code== | ||
| - | rc (USHORT) - return | ||
| Return code descriptions are: | Return code descriptions are: | ||
| - | * 0 NO_ERROR | ||
| - | * 355 ERROR_VIO_MODE | ||
| - | * 436 ERROR_VIO_INVALID_HANDLE | ||
| - | * 465 ERROR_VIO_DETACHED | ||
| - | ==Remarks== | + | * 0 NO_ERROR |
| + | * 355 ERROR_VIO_MODE | ||
| + | * 436 ERROR_VIO_INVALID_HANDLE | ||
| + | * 465 ERROR_VIO_DETACHED | ||
| - | ==Example Code== | + | ===== Bindings ===== |
| - | ===C Binding=== | + | |
| - | <PRE> | + | ====C Binding==== |
| + | <code c> | ||
| #define INCL_VIO | #define INCL_VIO | ||
| Line 33: | Line 40: | ||
| USHORT | USHORT | ||
| - | </PRE> | + | </code> |
| + | |||
| + | ==== MASM Binding ==== | ||
| - | ===MASM Binding=== | + | <code asm> |
| - | <PRE> | + | |
| EXTRN VioGetCurPos: | EXTRN VioGetCurPos: | ||
| INCL_VIO | INCL_VIO | ||
| Line 46: | Line 54: | ||
| Returns WORD | Returns WORD | ||
| - | </PRE> | + | </code> |
| - | ====== Note ====== | + | ===== Note ===== |
| Text based on [[http:// | Text based on [[http:// | ||




