GpiCloseSegment: Difference between revisions
Appearance
Created page with "==Syntax== GpiCloseSegment (hps) ==Parameters== ;hps (HPS) - input:Presentation-space handle. ==Returns== ;rc (BOOL) - returns:Success indicator. *TRUE - Successful complet..." |
No edit summary |
||
Line 1: | Line 1: | ||
This function closes the current segment. | |||
==Syntax== | ==Syntax== | ||
GpiCloseSegment (hps) | GpiCloseSegment (hps) | ||
==Parameters== | ==Parameters== | ||
;hps (HPS) - input:Presentation-space handle. | ;''hps'' (HPS) - input:Presentation-space handle. | ||
==Returns== | ==Returns== | ||
;rc (BOOL) - returns:Success indicator. | ;''rc'' (BOOL) - returns:Success indicator. | ||
*TRUE - Successful completion | *TRUE - Successful completion | ||
*FALSE - Error occurred. | *FALSE - Error occurred. | ||
==Example Code== | |||
Declaration: | |||
<pre> | |||
#define INCL_GPISEGMENTS /* Or use INCL_GPI, INCL_PM, */ | |||
#include <os2.h> | |||
HPS hps; /* Presentation-space handle. */ | |||
BOOL rc; /* Success indicator. */ | |||
rc = GpiCloseSegment(hps); | |||
</pre> | |||
[[Category:Gpi]] | [[Category:Gpi]] |
Revision as of 02:06, 20 September 2025
This function closes the current segment.
Syntax
GpiCloseSegment (hps)
Parameters
- hps (HPS) - input
- Presentation-space handle.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE - Successful completion
- FALSE - Error occurred.
Example Code
Declaration:
#define INCL_GPISEGMENTS /* Or use INCL_GPI, INCL_PM, */ #include <os2.h> HPS hps; /* Presentation-space handle. */ BOOL rc; /* Success indicator. */ rc = GpiCloseSegment(hps);