Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.59 KB

DeleteEnhMetaFile.md

File metadata and controls

53 lines (36 loc) · 1.59 KB

Home

Function name : DeleteEnhMetaFile

Group: Metafile - Library: gdi32


The DeleteEnhMetaFile function deletes an enhanced-format metafile or an enhanced-format metafile handle.


Code examples:

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

Declaration:

BOOL DeleteEnhMetaFile(
  HENHMETAFILE hemf   // handle to an enhanced metafile
);  

FoxPro declaration:

DECLARE INTEGER DeleteEnhMetaFile IN gdi32;
	INTEGER hemf  

Parameters:

hemf [in] Handle to an enhanced metafile.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

If the hemf parameter identifies an enhanced metafile stored in memory, the DeleteEnhMetaFile function deletes the metafile.

If hemf identifies a metafile stored on a disk, the function deletes the metafile handle but does not destroy the actual metafile. An application can retrieve the file by calling the GetEnhMetaFile function.