The ENHMETAHEADER3 structure contains enhanced-metafile data including the dimensions of the metafile image, the number of records in the metafile, and the resolution of the device on which the metafile was created.
C++ Syntax
typedef struct {
DWORD爄Type;
DWORD爊Size;
RECTL爎clBounds;
RECTL爎clFrame;
DWORD燿Signature;
DWORD爊Version;
DWORD爊Bytes;
DWORD爊Records;
WORD爊Handles;
WORD爏Reserved;
DWORD爊Description;
DWORD爋ffDescription;
DWORD爊PalEntries;
SIZEL爏zlDevice;
SIZEL爏zlMillimeters;
} ENHMETAHEADER3;
FreeBASIC 语法
TYPE ENHMETAHEADER3
itype AS DWORD
nSize AS DWORD
rclBounds AS RECTL
rclFrame AS RECTL
dSignature AS DWORD
nVersion AS DWORD
nBytes AS DWORD
nRecords AS DWORD
nHandles AS WORD
sReserved AS WORD
nDescription AS DWORD
offDescription AS DWORD
nPalEntries AS DWORD
szlDevice AS SIZEL
szlMillimeters AS SIZEL
END TYPE
成员
iType
Record type. Value is always EMR_HEADER.
nSize
Structure size, in bytes. This may be greater than the value returned by SIZEOF (ENHMETAHEADER3).
rclBounds
Bounding rectangle, in device units, for the image stored in the metafile.
rclFrame
Rectangle, in 0.01 millimeter units, that surrounds the image stored in the metafile.
dSignature
Must be ENHMETA_SIGNATURE.
nVersion
Version number of the metafile format. The current version is &H10000.
nBytes
Size, in bytes, of the metafile.
nRecords
Number of records in the metafile.
nHandles
Number of handles in the metafile handle table. Handle index zero is reserved.
sReserved
Reserved. Must be zero.
nDescription
Number of characters in the string that contains the description of the metafile's contents. This member is 0 if the metafile does not have a description string.
offDescription
Offset from the beginning of the ENHMETAHEADER3 structure to the string that contains the description of the metafile's contents. This member is 0 if the metafile does not have a description string.
nPalEntries
Number of entries in the metafile palette.
szlDevice
Resolution, in pixels, of the reference device.
szlMillimeters
Resolution, in millimeters, of the reference device.