Jump to content

VioDestroyPS: Difference between revisions

From EDM2
Created page with "==Description== Destroys the VIO presentation space. ==Syntax== <PRE> #define INCL_VIO #include <os2.h> HVIO hvps; VIO presentation-space handle.: APIRET rc; ..."
 
Ak120 (talk | contribs)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Description==
Destroys the VIO presentation space.
Destroys the VIO presentation space.
==Syntax==
==Syntax==
<PRE>
VioDestroyPS (hvps)
#define INCL_VIO
#include <os2.h>


HVIO     hvps;  /*  VIO presentation-space handle. */
==Parameters==
APIRET    rc;    /*  Return code. */
;hvps (HVIO) - input :VIO presentation-space handle.
:This is a value returned by [[VioCreatePS]].


rc = VioDestroyPS(hvps);
</PRE>
==Parameters==
; hvps (HVIO) - input : VIO presentation-space handle.
This is a value returned by VioCreatePS.
==Return Code==
==Return Code==
rc (APIRET) - returns
;rc (APIRET) - returns:VioDestroyPS returns one of the following values:
 
*0 NO_ERROR
VioDestroyPS returns one of the following values:
*421 ERROR_VIO_INVALID_PARMS
 
*436 ERROR_VIO_INVALID_HANDLE
* 0         NO_ERROR
*499 ERROR_VIO_ASSOCIATED_DC
* 421       ERROR_VIO_INVALID_PARMS  
* 436       ERROR_VIO_INVALID_HANDLE  
* 499       ERROR_VIO_ASSOCIATED_DC


==Remarks==
==Remarks==
Line 31: Line 20:
The VIO presentation-space handle is invalid after this call.
The VIO presentation-space handle is invalid after this call.


After this call, the local ID for the font is available for reuse.  
After this call, the local ID for the font is available for reuse.
==Example Code==
<PRE>
 
</PRE>
 
==Related Functions==


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

Latest revision as of 02:26, 2 January 2020

Destroys the VIO presentation space.

Syntax

VioDestroyPS (hvps)

Parameters

hvps (HVIO) - input
VIO presentation-space handle.
This is a value returned by VioCreatePS.

Return Code

rc (APIRET) - returns
VioDestroyPS returns one of the following values:
  • 0 NO_ERROR
  • 421 ERROR_VIO_INVALID_PARMS
  • 436 ERROR_VIO_INVALID_HANDLE
  • 499 ERROR_VIO_ASSOCIATED_DC

Remarks

The presentation space must not be associated with a device context when VioDestroyPS is called.

The VIO presentation-space handle is invalid after this call.

After this call, the local ID for the font is available for reuse.