Jump to content

VioGetDeviceCellSize

From EDM2
Revision as of 01:26, 13 June 2016 by Martini (talk | contribs) (Created page with "==Description== Returns the size of the current character cell in pels. ==Syntax== <PRE> #define INCL_VIO #include <os2.h> PULONG Height; PULONG Width; HVIO hvps; ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Returns the size of the current character cell in pels.

Syntax

#define INCL_VIO
#include <os2.h>

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

rc = VioGetDeviceCellSize(Height, Width, hvps);

Parameters

Height (PULONG) - input
Pointer to the height of the character cell in pels.
Width (PULONG) - input
Pointer to the width of the character cell in pels.
hvps (HVIO) - input
VIO presentation-space handle.

This is a value returned by VioCreatePS.


Return Code

rc (APIRET) - returns

VioGetDeviceCellSize 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