The EnhMetaFileProc function is an application-defined callback function used with the EnumEnhMetaFile function. The ENHMFENUMPROC type defines a pointer to this callback function. EnhMetaFileProc is a placeholder for the application-defined function name.
int CALLBACK EnhMetaFileProc(
HDC hDC, // handle to device context
HANDLETABLE FAR *lpHTable, // pointer to metafile handle table
ENHMETARECORD FAR *lpEMFR, // pointer to metafile record
int nObj, // count of objects
LPARAM lpData // pointer to optional data
);
This function must return a nonzero value to continue enumeration; to stop enumeration, it must return zero.
An application must register the callback function by passing its address to the EnumEnhMetaFile function.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Import Library: User-defined.
Metafiles Overview, Metafile Functions, ENHMETARECORD, EnumEnhMetaFile, HANDLETABLE