DevCloseDC
Appearance
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.