int CALLBACK EnumMetaFileProc(hdc, lpht, lpmr, cObj, lParam) | |||||
HDC hdc; | /* handle of device context | */ | |||
HANDLETABLE FAR* lpht; | /* address of table of object handles | */ | |||
METARECORD FAR* lpmr; | /* address of metafile record | */ | |||
int cObj; | /* number of objects in handle table | */ | |||
LPARAM lParam; | /* address of application-defined data | */ |
The EnumMetaFileProc function is an application-defined callback function that processes metafile data from the EnumMetaFile function.
hdc
Identifies the special device context that contains the metafile.
lpht
Points to a table of handles associated with the objects (pens, brushes, and so on) in the metafile.
lpmr
Points to a metafile record contained in the metafile.
cObj
Specifies the number of objects with associated handles in the handle table.
lParam
Points to the application-defined data.
The callback function must return a nonzero value to continue enumeration; to stop enumeration, it must return zero.
An application must register this callback function by passing its address to the EnumMetaFile function.
The EnumMetaFileProc function is a placeholder for the application-defined function name. The actual name must be exported by including it in an EXPORTS statement in the application's module-definition (.DEF) file.