en:docs:fapi:viogetcurpos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:docs:fapi:viogetcurpos [2021/08/20 08:04] prokusheven:docs:fapi:viogetcurpos [2021/09/19 02:09] (current) prokushev
Line 1: Line 1:
 {{page>en:templates:fapiint}} {{page>en:templates:fapiint}}
 +
 +====== VioGetCurPos ======
  
 This call returns the coordinates of the cursor. This call returns the coordinates of the cursor.
  
-==Syntax== +===== Syntax ===== 
- VioGetCurPos (Row, Column, VioHandle)+<code c> 
 +VioGetCurPos (Row, Column, VioHandle) 
 +</code>
  
-==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, in which case it must be the value returned by VioGetPs.+   * 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, in which case it must be the value returned by VioGetPs. 
 + 
 +===== 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           rc;            /* return code */ USHORT           rc;            /* return code */
-</PRE>+</code> 
 + 
 +==== MASM Binding ====
  
-===MASM Binding=== +<code asm>
-<PRE>+
 EXTRN  VioGetCurPos:FAR EXTRN  VioGetCurPos:FAR
 INCL_VIO            EQU 1 INCL_VIO            EQU 1
Line 46: Line 54:
  
 Returns WORD Returns WORD
-</PRE>+</code>
  
  
-====== Note ======+===== Note =====
  
 Text based on [[http://www.edm2.com/index.php/VioGetCurPos_(FAPI)]] Text based on [[http://www.edm2.com/index.php/VioGetCurPos_(FAPI)]]