ENHMFENUMPROC callback function (wingdi.h)

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.

Syntax

ENHMFENUMPROC Enhmfenumproc;

int Enhmfenumproc(
       HDC hdc,
       HANDLETABLE *lpht,
       const ENHMETARECORD *lpmr,
       int nHandles,
       LPARAM data
)
{...}

Parameters

hdc

lpht

lpmr

nHandles

data

Return value

This function must return a nonzero value to continue enumeration; to stop enumeration, it must return zero.

Remarks

An application must register the callback function by passing its address to the EnumEnhMetaFile function.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)

See also

ENHMETARECORD

EnumEnhMetaFile

HANDLETABLE

Metafile Functions

Metafiles Overview