Jump to content

VioGetOrigin

From EDM2
Revision as of 17:55, 21 June 2016 by Martini (talk | contribs) (Created page with "==Description== Gets the position at which the presentation space maps to the window. ==Syntax== <PRE> #define INCL_VIO #include <os2.h> PULONG Row; PULONG Column; HVI...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Gets the position at which the presentation space maps to the window.

Syntax

#define INCL_VIO
#include <os2.h>

PULONG    Row;
PULONG    Column;
HVIO      hvps;    /*  VIO presentation-space handle. */
APIRET    rc;      /*  Return code. */

rc = VioGetOrigin(Row, Column, hvps);

Parameters

Row (PULONG) - input
Location to return the top-most row shown in the window.
Column (PULONG) - input
Location to return the left-most column shown in the window.
hvps (HVIO) - input
VIO presentation-space handle.

This is either 0 to indicate the default VIO session, or a value returned by VioCreatePS.

Return Code

rc (APIRET) - returns

VioGetOrigin returns one of the following values:

  • 0 NO_ERROR
  • 421 ERROR_VIO_INVALID_PARMS
  • 436 ERROR_VIO_INVALID_HANDLE

Remarks

In OS/2 2.x, hvps cannot be 0.

Example Code


Related Functions