please dont rip this site Prev Next

EnumEnhMetaFile info  Overview  Group

The EnumEnhMetaFile function enumerates the records within an enhanced-format metafile by retrieving each record and passing it to the specified callback function. The application-supplied callback function processes each record as required. The enumeration continues until the last record is processed or when the callback function returns zero.

BOOL EnumEnhMetaFile(

    HDC hdc,

// handle to device context

    HENHMETAFILE hemf,

// handle to enhanced metafile

    ENHMFENUMPROC lpEnhMetaFunc,

// pointer to callback function

    LPVOID lpData,

// pointer to callback-function data

    CONST RECT *lpRect 

// pointer to bounding rectangle

   );

Parameters

hdc
Identifies a device context. This handle is passed to the callback function.
hemf
Identifies an enhanced metafile.
lpEnhMetaFunc
Points to the application-supplied callback function. For more information, see the EnhMetaFileProc function.
lpData
Points to optional callback-function data.
lpRect
Points to a RECT structure that specifies the coordinates of the picture’s upper-left and lower-right corners. The dimensions of this rectangle are specified in logical units.

Return Values

If the callback function successfully enumerates all the records in the enhanced metafile, the return value is nonzero.

If the callback function does not successfully enumerate all the records in the enhanced metafile, the return value is zero.

Remarks

Points along the edge of the rectangle pointed to by the lpRect parameter are included in the picture. If the hdc parameter is NULL, Windows ignores lpRect.

If the callback function calls the PlayEnhMetaFileRecord function, hdc must identify a valid device context. Windows uses the device context’s transformation and mapping mode to transform the picture displayed by the PlayEnhMetaFileRecord function.

You can use the EnumEnhMetaFile function to embed one enhanced-metafile within another.

See Also

EnhMetaFileProc, PlayEnhMetaFile, PlayEnhMetaFileRecord, RECT


file: /Techref/os/win/api/win32/func/src/f20_4.htm, 4KB, , updated: 2000/4/7 11:19, local time: 2024/11/7 21:25,
TOP NEW HELP FIND: 
3.138.134.140:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://linistepper.com/techref/os/win/api/win32/func/src/f20_4.htm"> EnumEnhMetaFile</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?