Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>playmetafile()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PlayMetaFile()
Play a metafile on a device
------------------------------------------------------------------------------

Syntax
PlayMetaFile( <hDC>, <hMetaFile> )   -->   lSuccess

Arguments
<hDC> specifies the device context.

<hMetaFile> is the handle of the metafile.

Returns
If successful, logical TRUE (.T.) is returned.  Otherwise,
FALSE is returned.

Description
This function plays a metafile on a device.  A metafile can be
played any number of times.

Example
hDCMeta = CreateMetaFile( 0 )    // get a device context to record a metafile
MoveTo( hDCMeta, 50, 50 )
LineTo( hDCMeta, 150, 50 )         // draw a line
hMetaFile = CloseMetaFile( hDCMeta ) // close hDCMeta and convert to a
                                   // metafile handle
hDC = GetDC( hWnd )                // get device context of window hWnd
PlayMetaFile( hDC, hMetaFile )     // play the metafile

ReleaseDC( hWnd, hDC )        // free the device context
DeleteMetaFile( hMetaFile )

See Also: CloseMetaFile() CreateMetaFile() DeleteMetaFile()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson