DeleteEnhMetaFile

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

The DeleteEnhMetaFile function deletes a metafile or a metafile handle.

Parameters

hemf

Identifies an enhanced metafile.

Return Value

The return value is TRUE if the metafile has been invalidated. Otherwise, it is FALSE.

Comments

If hemf identifies an enhanced metafile that is stored in memory, this function deletes the metafile. If hemf identifies a metafile that is stored on disk, this function deletes the metafile handle hemf but the actual metafile is not destroyed. (An application can retrieve the file by calling the GetEnhMetaFile function.)

See Also

GetEnhMetaFile, CreateEnhMetaFile, CopyEnhMetaFile