Metafile::PlayRecord method

The Metafile::PlayRecord method plays a metafile record.

Syntax

Status PlayRecord(
  IN EmfPlusRecordType recordType,
  IN UINT              flags,
  IN UINT              dataSize,
  IN const BYTE        *data
);

Parameters

recordType

Type: EmfPlusRecordType

Element of the EmfPlusRecordType enumeration that specifies the type of metafile record to be played.

flags

Type: UINT

Set of flags that specify attributes of the record to be played.

dataSize

Type: UINT

Integer that specifies the number of bytes contained in the record data.

data

Type: const BYTE*

Pointer to an array of bytes that contains the record data.

Return Value

Type: Type: Status

If the method succeeds, it returns Ok, which is an element of the

					<a href="https://docs.microsoft.com/windows/desktop/api/gdiplustypes/ne-gdiplustypes-status">Status</a> enumeration.

If the method fails, it returns one of the other elements of the

					<a href="https://docs.microsoft.com/windows/desktop/api/gdiplustypes/ne-gdiplustypes-status">Status</a> enumeration.

Remarks

This method is used in conjunction with the EnumerateMetafile Methods method of the

			<a href="https://docs.microsoft.com/windows/desktop/api/gdiplusgraphics/nl-gdiplusgraphics-graphics">Graphics</a> class. The EnumerateMetafile Methods method calls an application-defined callback function for each record in a specified metafile. The callback function can display each record (or selected records) by calling the <b>Metafile::PlayRecord</b> method.

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusheaders.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See Also

EmfPlusRecordType

EnumerateMetafile Methods

Loading and Displaying Metafiles

Metafile

Metafiles