Jump to content

VioGetDeviceCellSize: Difference between revisions

From EDM2
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; ..."
 
Ak120 (talk | contribs)
mNo edit summary
Line 12: Line 12:


rc = VioGetDeviceCellSize(Height, Width, hvps);
rc = VioGetDeviceCellSize(Height, Width, hvps);
</PRE>
</PRE>


==Parameters==
==Parameters==
; Height (PULONG) - input : Pointer to the height of the character cell in pels.  
; 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.
; Width (PULONG) - input :  Pointer to the width of the character cell in pels.  
 
; hvps (HVIO) - input : VIO presentation-space handle.
; hvps (HVIO) - input : VIO presentation-space handle.
This is a value returned by VioCreatePS.  
This is a value returned by VioCreatePS.
 


==Return Code==
==Return Code==
  rc (APIRET) - returns
  rc (APIRET) - returns
VioGetDeviceCellSize returns one of the following values:
VioGetDeviceCellSize returns one of the following values:
 
* 0 NO_ERROR
* 0         NO_ERROR  
* 421 ERROR_VIO_INVALID_PARMS
* 421       ERROR_VIO_INVALID_PARMS  
* 436 ERROR_VIO_INVALID_HANDLE
* 436       ERROR_VIO_INVALID_HANDLE
 


==Remarks==
==Remarks==
In OS/2 2.x, hvps cannot be 0.  
In OS/2 2.x, hvps cannot be 0.  
==Example Code==
<PRE>
</PRE>
==Related Functions==


[[Category:The OS/2 API Project]]
[[Category:Vio]]

Revision as of 00:00, 5 December 2016

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.