Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.23 KB

CloseEnhMetaFile.md

File metadata and controls

50 lines (33 loc) · 1.23 KB

Home

Function name : CloseEnhMetaFile

Group: Metafile - Library: gdi32


The CloseEnhMetaFile function closes an enhanced-metafile device context and returns a handle that identifies an enhanced-format metafile.


Code examples:

Storing screen shot of a form to enhanced metafile (*.emf)
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
How to print FoxPro form -- II

Declaration:

HENHMETAFILE CloseEnhMetaFile(
  HDC hdc   // handle to enhanced-metafile DC
);  

FoxPro declaration:

DECLARE INTEGER CloseEnhMetaFile IN gdi32;
	INTEGER hdc
  

Parameters:

hdc [in] Handle to an enhanced-metafile device context.


Return value:

If the function succeeds, the return value is a handle to an enhanced metafile.


Comments:

When the application no longer needs the enhanced metafile handle, it should release the handle by calling the DeleteEnhMetaFile function.