typedef struct tagENHMETAHEADER { /* enmh */
DWORD iType;
DWORD nSize;
RECTL rclBounds;
RECTL rclFrame;
DWORD dSignature;
DWORD nVersion;
DWORD nBytes;
DWORD nRecords;
WORD nHandles;
WORD sReserved;
DWORD nDescription;
DWORD offDescription;
DWORD nPalEntries;
SIZEL szlDevice;
SIZEL szlMillimeters;
} ENHMETAHEADER;
The ENHMETAHEADER structure contains enhanced-metafile data such as the dimensions of the picture stored in the enhanced-metafile, the count of records in the enhanced-metafile, the resolution of the device upon which the picture was created, and so on.
This structure is always the first record in an enhanced metafile.
The ENHMETAHEADER structure has the following members:
iType
Specifies the record type. This member must specify the value assigned to the MR_METAFILE constant.
nSize
Specifies the structure size in bytes.
rclBounds
Specifies the dimensions in device units of the smallest rectangle that can be drawn around the picture that is stored in the metafile. This rectangle is supplied by GDI. Its dimensions include the right and bottom edges.
rclFrame
Specifies the dimensions in .01 mm units of a rectangle that surrounds the picture that is stored in the metafile. This rectangle must be supplied by the application that creates the metafile. Its dimensions include the right and bottom edges.
dSignature
Specifies a DWORD signature. This member must specify the value assigned to the ENHMETA_SIGNATURE constant.
nVersion
Specifies the picture version.
nBytes
Specifies the size of the enhanced-metafile in bytes.
nRecords
Specifies the number of records in the enhanced-metafile.
nHandles
Specifies the number of handles in the enhanced-metafile handle-table. (Index zero in this table is reserved.)
sReserved
Reserved. This member must be set to zero.
nDescription
Specifies the number of characters in the array that contains the description of the enhanced-metafile's contents. This member should be set to zero if the enhanced-metafile does not contain a description string.
offDescription
Specifies the offset from the beginning of the ENHMETAHEADER structure to the array that contains the description of the enhanced-metafile's contents. This member should be set to zero if the enhanced metafile does not contain a description string.
nPalEntries
Specifies the number of entries in the enhanced-metafile's color palette.
szlDevice
Specifies the resolution of the reference device in pixels.
szlMillimeters
Specifies the resolution of the reference device in millimeters.