DevCloseDC: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
==Syntax== | |||
This function closes a device context. | |||
#define INCL_DEV /* Or use INCL_PM, Also in COMMON section */ | |||
#include <os2.h> | |||
HDC hdc; /* Device-context handle. */ | |||
HMF hmf; /* Error indicator metafile handle (for a metafile device context) */ | |||
hmf = DevCloseDC(hdc); | |||
==Parameters== | |||
'''hdc''' (HDC) - input | |||
Device-context handle. | |||
'''hmf''' (HMF) - returns | |||
Error indicator metafile handle (for a metafile device context) | |||
DEV_ERROR | |||
Error occurred. DEV_OK | |||
Device closed, but not a metafile device context. Other | |||
Device closed, a metafile device context whose metafile handle is returned. | |||
[[Category:The OS/2 API Project]] | [[Category:The OS/2 API Project]] |
Revision as of 19:06, 25 November 2014
Syntax
This function closes a device context.
#define INCL_DEV /* Or use INCL_PM, Also in COMMON section */ #include <os2.h> HDC hdc; /* Device-context handle. */ HMF hmf; /* Error indicator metafile handle (for a metafile device context) */ hmf = DevCloseDC(hdc);
Parameters
hdc (HDC) - input Device-context handle.
hmf (HMF) - returns Error indicator metafile handle (for a metafile device context)
DEV_ERROR Error occurred. DEV_OK Device closed, but not a metafile device context. Other Device closed, a metafile device context whose metafile handle is returned.