wmfstruct.h
00001
00002
00003
00004 #ifndef wmfstruct_h
00005 #define wmfstruct_h
00006
00007 typedef short WORD;
00008 typedef int DWORD;
00009 typedef Q_INT32 LONG;
00010 typedef void* _HANDLE;
00011
00012 typedef struct _RECT
00013 {
00014 WORD left;
00015 WORD top;
00016 WORD right;
00017 WORD bottom;
00018 } RECT;
00019
00020 typedef struct _RECTL
00021 {
00022 LONG left;
00023 LONG top;
00024 LONG right;
00025 LONG bottom;
00026 } RECTL;
00027
00028 typedef struct _SIZE
00029 {
00030 WORD width;
00031 WORD height;
00032 } SIZE;
00033
00034 typedef struct _SIZEL
00035 {
00036 LONG width;
00037 LONG height;
00038 } SIZEL;
00039
00040
00041 struct WmfEnhMetaHeader
00042 {
00043 DWORD iType;
00044 DWORD nSize;
00045
00046 RECTL rclBounds;
00047 RECTL rclFrame;
00048
00049 DWORD dSignature;
00050 DWORD nVersion;
00051 DWORD nBytes;
00052 DWORD nRecords;
00053 WORD nHandles;
00054
00055 WORD sReserved;
00056 DWORD nDescription;
00057
00058 DWORD offDescription;
00059
00060 DWORD nPalEntries;
00061 SIZEL szlDevice;
00062 SIZEL szlMillimeters;
00063 };
00064 #define ENHMETA_SIGNATURE 0x464D4520
00065
00066
00067 struct WmfMetaHeader
00068 {
00069 WORD mtType;
00070 WORD mtHeaderSize;
00071 WORD mtVersion;
00072 DWORD mtSize;
00073 WORD mtNoObjects;
00074 DWORD mtMaxRecord;
00075 WORD mtNoParameters;
00076 };
00077
00078
00079 struct WmfPlaceableHeader
00080 {
00081 DWORD key;
00082 WORD hmf;
00083 RECT bbox;
00084 WORD inch;
00085 DWORD reserved;
00086 WORD checksum;
00087 };
00088 #define APMHEADER_KEY 0x9AC6CDD7
00089
00090
00091 struct WmfMetaRecord
00092 {
00093 DWORD rdSize;
00094 WORD rdFunction;
00095 WORD rdParm[ 1 ];
00096 };
00097
00098
00099 struct WmfEnhMetaRecord
00100 {
00101 DWORD iType;
00102 DWORD nSize;
00103 DWORD dParm[ 1 ];
00104 };
00105
00106
00107 #endif
This file is part of the documentation for lib Library Version 1.4.2.