JwaWinGDI.pas
资源名称:win32api.zip [点击查看]
上传用户:davidchvip
上传日期:2009-07-28
资源大小:1749k
文件大小:424k
源码类别:
Windows编程
开发平台:
Delphi
- TOutlineTextMetricA = _OUTLINETEXTMETRICA;
- POutlineTextMetricW = ^TOutlineTextMetricW;
- _OUTLINETEXTMETRICW = record
- otmSize: UINT;
- otmTextMetrics: TEXTMETRICW;
- otmFiller: BYTE;
- otmPanoseNumber: PANOSE;
- otmfsSelection: UINT;
- otmfsType: UINT;
- otmsCharSlopeRise: Integer;
- otmsCharSlopeRun: Integer;
- otmItalicAngle: Integer;
- otmEMSquare: UINT;
- otmAscent: Integer;
- otmDescent: Integer;
- otmLineGap: UINT;
- otmsCapEmHeight: UINT;
- otmsXHeight: UINT;
- otmrcFontBox: RECT;
- otmMacAscent: Integer;
- otmMacDescent: Integer;
- otmMacLineGap: UINT;
- otmusMinimumPPEM: UINT;
- otmptSubscriptSize: POINT;
- otmptSubscriptOffset: POINT;
- otmptSuperscriptSize: POINT;
- otmptSuperscriptOffset: POINT;
- otmsStrikeoutSize: UINT;
- otmsStrikeoutPosition: Integer;
- otmsUnderscoreSize: Integer;
- otmsUnderscorePosition: Integer;
- otmpFamilyName: PSTR;
- otmpFaceName: PSTR;
- otmpStyleName: PSTR;
- otmpFullName: PSTR;
- end;
- {$EXTERNALSYM _OUTLINETEXTMETRICW}
- OUTLINETEXTMETRICW = _OUTLINETEXTMETRICW;
- {$EXTERNALSYM OUTLINETEXTMETRICW}
- LPOUTLINETEXTMETRICW = ^OUTLINETEXTMETRICW;
- {$EXTERNALSYM LPOUTLINETEXTMETRICW}
- NPOUTLINETEXTMETRICW = ^OUTLINETEXTMETRICW;
- {$EXTERNALSYM NPOUTLINETEXTMETRICW}
- TOutlineTextMetricW = _OUTLINETEXTMETRICW;
- {$IFDEF UNICODE}
- OUTLINETEXTMETRIC = OUTLINETEXTMETRICW;
- {$EXTERNALSYM OUTLINETEXTMETRIC}
- POUTLINETEXTMETRIC = POUTLINETEXTMETRICW;
- {$EXTERNALSYM POUTLINETEXTMETRIC}
- NPOUTLINETEXTMETRIC = NPOUTLINETEXTMETRICW;
- {$EXTERNALSYM NPOUTLINETEXTMETRIC}
- LPOUTLINETEXTMETRIC = LPOUTLINETEXTMETRICW;
- {$EXTERNALSYM LPOUTLINETEXTMETRIC}
- TOutlineTextMetric = TOutlineTextMetricW;
- {$ELSE}
- OUTLINETEXTMETRIC = OUTLINETEXTMETRICA;
- {$EXTERNALSYM OUTLINETEXTMETRIC}
- POUTLINETEXTMETRIC = POUTLINETEXTMETRICA;
- {$EXTERNALSYM POUTLINETEXTMETRIC}
- NPOUTLINETEXTMETRIC = NPOUTLINETEXTMETRICA;
- {$EXTERNALSYM NPOUTLINETEXTMETRIC}
- LPOUTLINETEXTMETRIC = LPOUTLINETEXTMETRICA;
- {$EXTERNALSYM LPOUTLINETEXTMETRIC}
- TOutlineTextMetric = TOutlineTextMetricA;
- {$ENDIF}
- PPolytextA = ^TPolytextA;
- tagPOLYTEXTA = record
- x: Integer;
- y: Integer;
- n: UINT;
- lpstr: LPCSTR;
- uiFlags: UINT;
- rcl: RECT;
- pdx: PINT;
- end;
- {$EXTERNALSYM tagPOLYTEXTA}
- POLYTEXTA = tagPOLYTEXTA;
- {$EXTERNALSYM POLYTEXTA}
- LPPOLYTEXTA = ^POLYTEXTA;
- {$EXTERNALSYM LPPOLYTEXTA}
- NPPOLYTEXTA = ^POLYTEXTA;
- {$EXTERNALSYM NPPOLYTEXTA}
- TPolytextA = POLYTEXTA;
- PPolytextW = ^TPolytextW;
- tagPOLYTEXTW = record
- x: Integer;
- y: Integer;
- n: UINT;
- lpstr: LPCWSTR;
- uiFlags: UINT;
- rcl: RECT;
- pdx: PINT;
- end;
- {$EXTERNALSYM tagPOLYTEXTW}
- POLYTEXTW = tagPOLYTEXTW;
- {$EXTERNALSYM POLYTEXTW}
- LPPOLYTEXTW = ^POLYTEXTW;
- {$EXTERNALSYM LPPOLYTEXTW}
- NPPOLYTEXTW = ^POLYTEXTW;
- {$EXTERNALSYM NPPOLYTEXTW}
- TPolytextW = POLYTEXTW;
- {$IFDEF UNICODE}
- POLYTEXT = POLYTEXTW;
- {$EXTERNALSYM POLYTEXT}
- PPOLYTEXT = PPOLYTEXTW;
- {$EXTERNALSYM PPOLYTEXT}
- NPPOLYTEXT = NPPOLYTEXTW;
- {$EXTERNALSYM NPPOLYTEXT}
- LPPOLYTEXT = LPPOLYTEXTW;
- {$EXTERNALSYM LPPOLYTEXT}
- TPolyText = TPolyTextW;
- {$ELSE}
- POLYTEXT = POLYTEXTA;
- {$EXTERNALSYM POLYTEXT}
- PPOLYTEXT = PPOLYTEXTA;
- {$EXTERNALSYM PPOLYTEXT}
- NPPOLYTEXT = NPPOLYTEXTA;
- {$EXTERNALSYM NPPOLYTEXT}
- LPPOLYTEXT = LPPOLYTEXTA;
- {$EXTERNALSYM LPPOLYTEXT}
- TPolyText = TPolyTextA;
- {$ENDIF}
- PFixed = ^TFixed;
- _FIXED = record
- fract: WORD;
- value: short;
- end;
- {$EXTERNALSYM _FIXED}
- FIXED = _FIXED;
- {$EXTERNALSYM FIXED}
- TFixed = _FIXED;
- PMat2 = ^TMat2;
- _MAT2 = record
- eM11: FIXED;
- eM12: FIXED;
- eM21: FIXED;
- eM22: FIXED;
- end;
- {$EXTERNALSYM _MAT2}
- MAT2 = _MAT2;
- {$EXTERNALSYM MAT2}
- LPMAT2 = ^MAT2;
- {$EXTERNALSYM LPMAT2}
- TMat2 = _MAT2;
- PGlyphMetrics = ^TGlyphMetrics;
- _GLYPHMETRICS = record
- gmBlackBoxX: UINT;
- gmBlackBoxY: UINT;
- gmptGlyphOrigin: POINT;
- gmCellIncX: short;
- gmCellIncY: short;
- end;
- {$EXTERNALSYM _GLYPHMETRICS}
- GLYPHMETRICS = _GLYPHMETRICS;
- {$EXTERNALSYM GLYPHMETRICS}
- LPGLYPHMETRICS = ^GLYPHMETRICS;
- {$EXTERNALSYM LPGLYPHMETRICS}
- TGlyphMetrics = _GLYPHMETRICS;
- // GetGlyphOutline constants
- const
- GGO_METRICS = 0;
- {$EXTERNALSYM GGO_METRICS}
- GGO_BITMAP = 1;
- {$EXTERNALSYM GGO_BITMAP}
- GGO_NATIVE = 2;
- {$EXTERNALSYM GGO_NATIVE}
- GGO_BEZIER = 3;
- {$EXTERNALSYM GGO_BEZIER}
- GGO_GRAY2_BITMAP = 4;
- {$EXTERNALSYM GGO_GRAY2_BITMAP}
- GGO_GRAY4_BITMAP = 5;
- {$EXTERNALSYM GGO_GRAY4_BITMAP}
- GGO_GRAY8_BITMAP = 6;
- {$EXTERNALSYM GGO_GRAY8_BITMAP}
- GGO_GLYPH_INDEX = $0080;
- {$EXTERNALSYM GGO_GLYPH_INDEX}
- GGO_UNHINTED = $0100;
- {$EXTERNALSYM GGO_UNHINTED}
- TT_POLYGON_TYPE = 24;
- {$EXTERNALSYM TT_POLYGON_TYPE}
- TT_PRIM_LINE = 1;
- {$EXTERNALSYM TT_PRIM_LINE}
- TT_PRIM_QSPLINE = 2;
- {$EXTERNALSYM TT_PRIM_QSPLINE}
- TT_PRIM_CSPLINE = 3;
- {$EXTERNALSYM TT_PRIM_CSPLINE}
- type
- PPointFx = ^TPointFx;
- tagPOINTFX = record
- x: FIXED;
- y: FIXED;
- end;
- {$EXTERNALSYM tagPOINTFX}
- POINTFX = tagPOINTFX;
- {$EXTERNALSYM POINTFX}
- LPPOINTFX = ^POINTFX;
- {$EXTERNALSYM LPPOINTFX}
- TPointFx = POINTFX;
- PTtPolyCurve = ^TTtPolyCurve;
- tagTTPOLYCURVE = record
- wType: WORD;
- cpfx: WORD;
- apfx: array [0..0] of POINTFX;
- end;
- {$EXTERNALSYM tagTTPOLYCURVE}
- TTPOLYCURVE = tagTTPOLYCURVE;
- {$EXTERNALSYM TTPOLYCURVE}
- LPTTPOLYCURVE = ^TTPOLYCURVE;
- {$EXTERNALSYM LPTTPOLYCURVE}
- TTtPolyCurve = TTPOLYCURVE;
- PTtPolygonHeader = ^TTtPolygonHeader;
- tagTTPOLYGONHEADER = record
- cb: DWORD;
- dwType: DWORD;
- pfxStart: POINTFX;
- end;
- {$EXTERNALSYM tagTTPOLYGONHEADER}
- TTPOLYGONHEADER = tagTTPOLYGONHEADER;
- {$EXTERNALSYM TTPOLYGONHEADER}
- LPTTPOLYGONHEADER = ^TTPOLYGONHEADER;
- {$EXTERNALSYM LPTTPOLYGONHEADER}
- TTtPolygonHeader = TTPOLYGONHEADER;
- const
- GCP_DBCS = $0001;
- {$EXTERNALSYM GCP_DBCS}
- GCP_REORDER = $0002;
- {$EXTERNALSYM GCP_REORDER}
- GCP_USEKERNING = $0008;
- {$EXTERNALSYM GCP_USEKERNING}
- GCP_GLYPHSHAPE = $0010;
- {$EXTERNALSYM GCP_GLYPHSHAPE}
- GCP_LIGATE = $0020;
- {$EXTERNALSYM GCP_LIGATE}
- ////#define GCP_GLYPHINDEXING 0x0080
- GCP_DIACRITIC = $0100;
- {$EXTERNALSYM GCP_DIACRITIC}
- GCP_KASHIDA = $0400;
- {$EXTERNALSYM GCP_KASHIDA}
- GCP_ERROR = $8000;
- {$EXTERNALSYM GCP_ERROR}
- FLI_MASK = $103B;
- {$EXTERNALSYM FLI_MASK}
- GCP_JUSTIFY = $00010000;
- {$EXTERNALSYM GCP_JUSTIFY}
- ////#define GCP_NODIACRITICS 0x00020000L
- FLI_GLYPHS = $00040000;
- {$EXTERNALSYM FLI_GLYPHS}
- GCP_CLASSIN = $00080000;
- {$EXTERNALSYM GCP_CLASSIN}
- GCP_MAXEXTENT = $00100000;
- {$EXTERNALSYM GCP_MAXEXTENT}
- GCP_JUSTIFYIN = $00200000;
- {$EXTERNALSYM GCP_JUSTIFYIN}
- GCP_DISPLAYZWG = $00400000;
- {$EXTERNALSYM GCP_DISPLAYZWG}
- GCP_SYMSWAPOFF = $00800000;
- {$EXTERNALSYM GCP_SYMSWAPOFF}
- GCP_NUMERICOVERRIDE = $01000000;
- {$EXTERNALSYM GCP_NUMERICOVERRIDE}
- GCP_NEUTRALOVERRIDE = $02000000;
- {$EXTERNALSYM GCP_NEUTRALOVERRIDE}
- GCP_NUMERICSLATIN = $04000000;
- {$EXTERNALSYM GCP_NUMERICSLATIN}
- GCP_NUMERICSLOCAL = $08000000;
- {$EXTERNALSYM GCP_NUMERICSLOCAL}
- GCPCLASS_LATIN = 1;
- {$EXTERNALSYM GCPCLASS_LATIN}
- GCPCLASS_HEBREW = 2;
- {$EXTERNALSYM GCPCLASS_HEBREW}
- GCPCLASS_ARABIC = 2;
- {$EXTERNALSYM GCPCLASS_ARABIC}
- GCPCLASS_NEUTRAL = 3;
- {$EXTERNALSYM GCPCLASS_NEUTRAL}
- GCPCLASS_LOCALNUMBER = 4;
- {$EXTERNALSYM GCPCLASS_LOCALNUMBER}
- GCPCLASS_LATINNUMBER = 5;
- {$EXTERNALSYM GCPCLASS_LATINNUMBER}
- GCPCLASS_LATINNUMERICTERMINATOR = 6;
- {$EXTERNALSYM GCPCLASS_LATINNUMERICTERMINATOR}
- GCPCLASS_LATINNUMERICSEPARATOR = 7;
- {$EXTERNALSYM GCPCLASS_LATINNUMERICSEPARATOR}
- GCPCLASS_NUMERICSEPARATOR = 8;
- {$EXTERNALSYM GCPCLASS_NUMERICSEPARATOR}
- GCPCLASS_PREBOUNDLTR = $80;
- {$EXTERNALSYM GCPCLASS_PREBOUNDLTR}
- GCPCLASS_PREBOUNDRTL = $40;
- {$EXTERNALSYM GCPCLASS_PREBOUNDRTL}
- GCPCLASS_POSTBOUNDLTR = $20;
- {$EXTERNALSYM GCPCLASS_POSTBOUNDLTR}
- GCPCLASS_POSTBOUNDRTL = $10;
- {$EXTERNALSYM GCPCLASS_POSTBOUNDRTL}
- GCPGLYPH_LINKBEFORE = $8000;
- {$EXTERNALSYM GCPGLYPH_LINKBEFORE}
- GCPGLYPH_LINKAFTER = $4000;
- {$EXTERNALSYM GCPGLYPH_LINKAFTER}
- type
- PGcpResultsA = ^TGcpResultsA;
- tagGCP_RESULTSA = record
- lStructSize: DWORD;
- lpOutString: LPSTR;
- lpOrder: LPUINT;
- lpDx: PINT;
- lpCaretPos: PINT;
- lpClass: LPSTR;
- lpGlyphs: LPWSTR;
- nGlyphs: UINT;
- nMaxFit: Integer;
- end;
- {$EXTERNALSYM tagGCP_RESULTSA}
- GCP_RESULTSA = tagGCP_RESULTSA;
- {$EXTERNALSYM GCP_RESULTSA}
- LPGCP_RESULTSA = ^GCP_RESULTSA;
- {$EXTERNALSYM LPGCP_RESULTSA}
- TGcpResultsA = GCP_RESULTSA;
- PGcpResultsW = ^TGcpResultsW;
- tagGCP_RESULTSW = record
- lStructSize: DWORD;
- lpOutString: LPWSTR;
- lpOrder: LPUINT;
- lpDx: PINT;
- lpCaretPos: PINT;
- lpClass: LPSTR;
- lpGlyphs: LPWSTR;
- nGlyphs: UINT;
- nMaxFit: Integer;
- end;
- {$EXTERNALSYM tagGCP_RESULTSW}
- GCP_RESULTSW = tagGCP_RESULTSW;
- {$EXTERNALSYM GCP_RESULTSW}
- LPGCP_RESULTSW = ^GCP_RESULTSW;
- {$EXTERNALSYM LPGCP_RESULTSW}
- TGcpResultsW = GCP_RESULTSW;
- {$IFDEF UNICODE}
- GCP_RESULTS = GCP_RESULTSW;
- {$EXTERNALSYM GCP_RESULTS}
- LPGCP_RESULTS = LPGCP_RESULTSW;
- {$EXTERNALSYM LPGCP_RESULTS}
- TGcpResults = TGcpResultsW;
- PGcpResults = PGcpResultsW;
- {$ELSE}
- GCP_RESULTS = GCP_RESULTSA;
- {$EXTERNALSYM GCP_RESULTS}
- LPGCP_RESULTS = LPGCP_RESULTSA;
- {$EXTERNALSYM LPGCP_RESULTS}
- TGcpResults = TGcpResultsA;
- PGcpResults = PGcpResultsA;
- {$ENDIF}
- PRasterizerStatus = ^TRasterizerStatus;
- _RASTERIZER_STATUS = record
- nSize: short;
- wFlags: short;
- nLanguageID: short;
- end;
- {$EXTERNALSYM _RASTERIZER_STATUS}
- RASTERIZER_STATUS = _RASTERIZER_STATUS;
- {$EXTERNALSYM RASTERIZER_STATUS}
- LPRASTERIZER_STATUS = ^RASTERIZER_STATUS;
- {$EXTERNALSYM LPRASTERIZER_STATUS}
- TRasterizerStatus = _RASTERIZER_STATUS;
- // bits defined in wFlags of RASTERIZER_STATUS
- const
- TT_AVAILABLE = $0001;
- {$EXTERNALSYM TT_AVAILABLE}
- TT_ENABLED = $0002;
- {$EXTERNALSYM TT_ENABLED}
- // Pixel format descriptor
- type
- PPixelFormatDescriptor = ^TPixelFormatDescriptor;
- tagPIXELFORMATDESCRIPTOR = record
- nSize: WORD;
- nVersion: WORD;
- dwFlags: DWORD;
- iPixelType: BYTE;
- cColorBits: BYTE;
- cRedBits: BYTE;
- cRedShift: BYTE;
- cGreenBits: BYTE;
- cGreenShift: BYTE;
- cBlueBits: BYTE;
- cBlueShift: BYTE;
- cAlphaBits: BYTE;
- cAlphaShift: BYTE;
- cAccumBits: BYTE;
- cAccumRedBits: BYTE;
- cAccumGreenBits: BYTE;
- cAccumBlueBits: BYTE;
- cAccumAlphaBits: BYTE;
- cDepthBits: BYTE;
- cStencilBits: BYTE;
- cAuxBuffers: BYTE;
- iLayerType: BYTE;
- bReserved: BYTE;
- dwLayerMask: DWORD;
- dwVisibleMask: DWORD;
- dwDamageMask: DWORD;
- end;
- {$EXTERNALSYM tagPIXELFORMATDESCRIPTOR}
- PIXELFORMATDESCRIPTOR = tagPIXELFORMATDESCRIPTOR;
- {$EXTERNALSYM PIXELFORMATDESCRIPTOR}
- LPPIXELFORMATDESCRIPTOR = ^PIXELFORMATDESCRIPTOR;
- {$EXTERNALSYM LPPIXELFORMATDESCRIPTOR}
- TPixelFormatDescriptor = PIXELFORMATDESCRIPTOR;
- // pixel types
- const
- PFD_TYPE_RGBA = 0;
- {$EXTERNALSYM PFD_TYPE_RGBA}
- PFD_TYPE_COLORINDEX = 1;
- {$EXTERNALSYM PFD_TYPE_COLORINDEX}
- // layer types
- PFD_MAIN_PLANE = 0;
- {$EXTERNALSYM PFD_MAIN_PLANE}
- PFD_OVERLAY_PLANE = 1;
- {$EXTERNALSYM PFD_OVERLAY_PLANE}
- PFD_UNDERLAY_PLANE = DWORD(-1);
- {$EXTERNALSYM PFD_UNDERLAY_PLANE}
- // PIXELFORMATDESCRIPTOR flags
- PFD_DOUBLEBUFFER = $00000001;
- {$EXTERNALSYM PFD_DOUBLEBUFFER}
- PFD_STEREO = $00000002;
- {$EXTERNALSYM PFD_STEREO}
- PFD_DRAW_TO_WINDOW = $00000004;
- {$EXTERNALSYM PFD_DRAW_TO_WINDOW}
- PFD_DRAW_TO_BITMAP = $00000008;
- {$EXTERNALSYM PFD_DRAW_TO_BITMAP}
- PFD_SUPPORT_GDI = $00000010;
- {$EXTERNALSYM PFD_SUPPORT_GDI}
- PFD_SUPPORT_OPENGL = $00000020;
- {$EXTERNALSYM PFD_SUPPORT_OPENGL}
- PFD_GENERIC_FORMAT = $00000040;
- {$EXTERNALSYM PFD_GENERIC_FORMAT}
- PFD_NEED_PALETTE = $00000080;
- {$EXTERNALSYM PFD_NEED_PALETTE}
- PFD_NEED_SYSTEM_PALETTE = $00000100;
- {$EXTERNALSYM PFD_NEED_SYSTEM_PALETTE}
- PFD_SWAP_EXCHANGE = $00000200;
- {$EXTERNALSYM PFD_SWAP_EXCHANGE}
- PFD_SWAP_COPY = $00000400;
- {$EXTERNALSYM PFD_SWAP_COPY}
- PFD_SWAP_LAYER_BUFFERS = $00000800;
- {$EXTERNALSYM PFD_SWAP_LAYER_BUFFERS}
- PFD_GENERIC_ACCELERATED = $00001000;
- {$EXTERNALSYM PFD_GENERIC_ACCELERATED}
- PFD_SUPPORT_DIRECTDRAW = $00002000;
- {$EXTERNALSYM PFD_SUPPORT_DIRECTDRAW}
- // PIXELFORMATDESCRIPTOR flags for use in ChoosePixelFormat only
- PFD_DEPTH_DONTCARE = DWORD($20000000);
- {$EXTERNALSYM PFD_DEPTH_DONTCARE}
- PFD_DOUBLEBUFFER_DONTCARE = DWORD($40000000);
- {$EXTERNALSYM PFD_DOUBLEBUFFER_DONTCARE}
- PFD_STEREO_DONTCARE = DWORD($80000000);
- {$EXTERNALSYM PFD_STEREO_DONTCARE}
- type
- OLDFONTENUMPROCA = function (lpelf: LPLOGFONTA; lpntm: LPTEXTMETRICA; FontType: DWORD; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM OLDFONTENUMPROCA}
- OLDFONTENUMPROCW = function (lpelf: LPLOGFONTW; lpntm: LPTEXTMETRICW; FontType: DWORD; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM OLDFONTENUMPROCW}
- {$IFDEF UNICODE}
- OLDFONTENUMPROC = function (lpelf: LPLOGFONTW; lpntm: LPTEXTMETRICW; FontType: DWORD; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM OLDFONTENUMPROC}
- {$ELSE}
- OLDFONTENUMPROC = function (lpelf: LPLOGFONTA; lpntm: LPTEXTMETRICA; FontType: DWORD; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM OLDFONTENUMPROC}
- {$ENDIF}
- FONTENUMPROCA = OLDFONTENUMPROCA;
- {$EXTERNALSYM FONTENUMPROCA}
- FONTENUMPROCW = OLDFONTENUMPROCW;
- {$EXTERNALSYM FONTENUMPROCW}
- {$IFDEF UNICODE}
- FONTENUMPROC = FONTENUMPROCW;
- {$EXTERNALSYM FONTENUMPROC}
- {$ELSE}
- FONTENUMPROC = FONTENUMPROCA;
- {$EXTERNALSYM FONTENUMPROC}
- {$ENDIF}
- GOBJENUMPROC = function(lpLogObject: LPVOID; lpData: LPARAM): Integer; stdcall;
- {$EXTERNALSYM GOBJENUMPROC}
- LINEDDAPROC = procedure (X, Y: Integer; lpData: LPARAM); stdcall;
- {$EXTERNALSYM LINEDDAPROC}
- function AddFontResourceA(lpszFileName: LPCSTR): Integer; stdcall;
- {$EXTERNALSYM AddFontResourceA}
- function AddFontResourceW(lpszFileName: LPCWSTR): Integer; stdcall;
- {$EXTERNALSYM AddFontResourceW}
- {$IFDEF UNICODE}
- function AddFontResource(lpszFileName: LPCWSTR): Integer; stdcall;
- {$EXTERNALSYM AddFontResource}
- {$ELSE}
- function AddFontResource(lpszFileName: LPCSTR): Integer; stdcall;
- {$EXTERNALSYM AddFontResource}
- {$ENDIF}
- function AnimatePalette(hPal: HPALETTE; iStartIndex: UINT; cEntries: UINT; ppe: PPALETTEENTRY): BOOL; stdcall;
- {$EXTERNALSYM AnimatePalette}
- function Arc(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect, nxStartArc, nyStartArc, nXEndArc, nYEndArc: Integer): BOOL; stdcall;
- {$EXTERNALSYM Arc}
- function BitBlt(hdcDEst: HDC; nXDest, nYDest, nWidth, nHeight: Integer; hdcSrc: HDC; nXSrc, nYSrc: Integer; dwRop: DWORD): BOOL; stdcall;
- {$EXTERNALSYM BitBlt}
- function CancelDC(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM CancelDC}
- function Chord(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect, nXRadial1, nYRadial1, nXRadial2, nYRadial2: Integer): BOOL; stdcall;
- {$EXTERNALSYM Chord}
- function ChoosePixelFormat(hdc: HDC; const ppfd: PIXELFORMATDESCRIPTOR): Integer; stdcall;
- {$EXTERNALSYM ChoosePixelFormat}
- function CloseMetaFile(hdc: HDC): HMETAFILE; stdcall;
- {$EXTERNALSYM CloseMetaFile}
- function CombineRgn(hrgnDest, hrgnSrc1, hrgnSrc2: HRGN; fnCombineMode: Integer): Integer; stdcall;
- {$EXTERNALSYM CombineRgn}
- function CopyMetaFileA(hmfSrc: HMETAFILE; lpszFile: LPCSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM CopyMetaFileA}
- function CopyMetaFileW(hmfSrc: HMETAFILE; lpszFile: LPCWSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM CopyMetaFileW}
- {$IFDEF UNICODE}
- function CopyMetaFile(hmfSrc: HMETAFILE; lpszFile: LPCWSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM CopyMetaFile}
- {$ELSE}
- function CopyMetaFile(hmfSrc: HMETAFILE; lpszFile: LPCSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM CopyMetaFile}
- {$ENDIF}
- function CreateBitmap(nWidth, nHeight: Integer; Cplanes, cBitsPerPel: UINT; lpvBits: PVOID): HBITMAP; stdcall;
- {$EXTERNALSYM CreateBitmap}
- function CreateBitmapIndirect(const lpbm: BITMAP): HBITMAP; stdcall;
- {$EXTERNALSYM CreateBitmapIndirect}
- function CreateBrushIndirect(const lplb: LOGBRUSH): HBRUSH; stdcall;
- {$EXTERNALSYM CreateBrushIndirect}
- function CreateCompatibleBitmap(hdc: HDC; nWidth, nHeight: Integer): HBITMAP; stdcall;
- {$EXTERNALSYM CreateCompatibleBitmap}
- function CreateDiscardableBitmap(hdc: HDC; nWidth, nHeight: Integer): HBITMAP; stdcall;
- {$EXTERNALSYM CreateDiscardableBitmap}
- function CreateCompatibleDC(hdc: HDC): HDC; stdcall;
- {$EXTERNALSYM CreateCompatibleDC}
- function CreateDCA(lpszDriver, lpszDevice, lpszOutput: LPCSTR; lpInitData: LPDEVMODEA): HDC; stdcall;
- {$EXTERNALSYM CreateDCA}
- function CreateDCW(lpszDriver, lpszDevice, lpszOutput: LPCWSTR; lpInitData: LPDEVMODEW): HDC; stdcall;
- {$EXTERNALSYM CreateDCW}
- {$IFDEF UNICODE}
- function CreateDC(lpszDriver, lpszDevice, lpszOutput: LPCWSTR; lpInitData: LPDEVMODEW): HDC; stdcall;
- {$EXTERNALSYM CreateDC}
- {$ELSE}
- function CreateDC(lpszDriver, lpszDevice, lpszOutput: LPCSTR; lpInitData: LPDEVMODEA): HDC; stdcall;
- {$EXTERNALSYM CreateDC}
- {$ENDIF}
- function CreateDIBitmap(hdc: HDC; const lpbmih: BITMAPINFOHEADER; fdwInit: DWORD; lpbInit: PVOID; const lpbmi: BITMAPINFO; fuUsage: UINT): HBITMAP; stdcall;
- {$EXTERNALSYM CreateDIBitmap}
- function CreateDIBPatternBrush(hglbDIBPacked: HGLOBAL; fuColorSpec: UINT): HBRUSH; stdcall;
- {$EXTERNALSYM CreateDIBPatternBrush}
- function CreateDIBPatternBrushPt(lpPackedDIB: PVOID; iUsage: UINT): HBRUSH; stdcall;
- {$EXTERNALSYM CreateDIBPatternBrushPt}
- function CreateEllipticRgn(nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): HRGN; stdcall;
- {$EXTERNALSYM CreateEllipticRgn}
- function CreateEllipticRgnIndirect(const lprc: RECT): HRGN; stdcall;
- {$EXTERNALSYM CreateEllipticRgnIndirect}
- function CreateFontIndirectA(const lplf: LOGFONTA): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirectA}
- function CreateFontIndirectW(const lplf: LOGFONTW): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirectW}
- {$IFDEF UNICODE}
- function CreateFontIndirect(const lplf: LOGFONTW): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirect}
- {$ELSE}
- function CreateFontIndirect(const lplf: LOGFONTA): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirect}
- {$ENDIF}
- function CreateFontA(nHeight, nWidth, nEscapement, nOrientation, fnWeight: Integer; fdwItalic, fdwUnderline, fdwStrikeOut, fdwCharSet, fdwOutputPrecision, fdwClipPrecision, fdwQuality, fdwPitchAndFamily: DWORD; lpszFace: LPCSTR): HFONT; stdcall;
- {$EXTERNALSYM CreateFontA}
- function CreateFontW(nHeight, nWidth, nEscapement, nOrientation, fnWeight: Integer; fdwItalic, fdwUnderline, fdwStrikeOut, fdwCharSet, fdwOutputPrecision, fdwClipPrecision, fdwQuality, fdwPitchAndFamily: DWORD; lpszFace: LPCWSTR): HFONT; stdcall;
- {$EXTERNALSYM CreateFontW}
- {$IFDEF UNICODE}
- function CreateFont(nHeight, nWidth, nEscapement, nOrientation, fnWeight: Integer; fdwItalic, fdwUnderline, fdwStrikeOut, fdwCharSet, fdwOutputPrecision, fdwClipPrecision, fdwQuality, fdwPitchAndFamily: DWORD; lpszFace: LPCWSTR): HFONT; stdcall;
- {$EXTERNALSYM CreateFont}
- {$ELSE}
- function CreateFont(nHeight, nWidth, nEscapement, nOrientation, fnWeight: Integer; fdwItalic, fdwUnderline, fdwStrikeOut, fdwCharSet, fdwOutputPrecision, fdwClipPrecision, fdwQuality, fdwPitchAndFamily: DWORD; lpszFace: LPCSTR): HFONT; stdcall;
- {$EXTERNALSYM CreateFont}
- {$ENDIF}
- function CreateHatchBrush(fnStyle: Integer; clrref: COLORREF): HBRUSH; stdcall;
- {$EXTERNALSYM CreateHatchBrush}
- function CreateICA(lpszDriver, lpszDevice, lpszOutput: LPCSTR; lpdvmInit: LPDEVMODEA): HDC; stdcall;
- {$EXTERNALSYM CreateICA}
- function CreateICW(lpszDriver, lpszDevice, lpszOutput: LPCWSTR; lpdvmInit: LPDEVMODEW): HDC; stdcall;
- {$EXTERNALSYM CreateICW}
- {$IFDEF UNICODE}
- function CreateIC(lpszDriver, lpszDevice, lpszOutput: LPCWSTR; lpdvmInit: LPDEVMODEW): HDC; stdcall;
- {$EXTERNALSYM CreateIC}
- {$ELSE}
- function CreateIC(lpszDriver, lpszDevice, lpszOutput: LPCSTR; lpdvmInit: LPDEVMODEA): HDC; stdcall;
- {$EXTERNALSYM CreateIC}
- {$ENDIF}
- function CreateMetaFileA(lpszFile: LPCSTR): HDC; stdcall;
- {$EXTERNALSYM CreateMetaFileA}
- function CreateMetaFileW(lpszFile: LPCWSTR): HDC; stdcall;
- {$EXTERNALSYM CreateMetaFileW}
- {$IFDEF UNICODE}
- function CreateMetaFile(lpszFile: LPCWSTR): HDC; stdcall;
- {$EXTERNALSYM CreateMetaFile}
- {$ELSE}
- function CreateMetaFile(lpszFile: LPCSTR): HDC; stdcall;
- {$EXTERNALSYM CreateMetaFile}
- {$ENDIF}
- function CreatePalette(const lplgpl: LOGPALETTE): HPALETTE; stdcall;
- {$EXTERNALSYM CreatePalette}
- function CreatePen(fnPenStyle, nWidth: Integer; crColor: COLORREF): HPEN; stdcall;
- {$EXTERNALSYM CreatePen}
- function CreatePenIndirect(const lplgpn: LOGPEN): HPEN; stdcall;
- {$EXTERNALSYM CreatePenIndirect}
- function CreatePolyPolygonRgn(lppt: LPPOINT; lpPolyCounts: LPINT; nCount, fnPolyFillMode: Integer): HRGN; stdcall;
- {$EXTERNALSYM CreatePolyPolygonRgn}
- function CreatePatternBrush(hbmp: HBITMAP): HBRUSH; stdcall;
- {$EXTERNALSYM CreatePatternBrush}
- function CreateRectRgn(nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): HRGN; stdcall;
- {$EXTERNALSYM CreateRectRgn}
- function CreateRectRgnIndirect(const lprc: RECT): HRGN; stdcall;
- {$EXTERNALSYM CreateRectRgnIndirect}
- function CreateRoundRectRgn(nLeftRect, nTopRect, nRightRect, nBottomRect, nWidthEllipse, nHeightEllipse: Integer): HRGN; stdcall;
- {$EXTERNALSYM CreateRoundRectRgn}
- function CreateScalableFontResourceA(fdwHidden: DWORD; lpszFontRes, lpszFontFile, lpszCurrentPath: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM CreateScalableFontResourceA}
- function CreateScalableFontResourceW(fdwHidden: DWORD; lpszFontRes, lpszFontFile, lpszCurrentPath: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM CreateScalableFontResourceW}
- {$IFDEF UNICODE}
- function CreateScalableFontResource(fdwHidden: DWORD; lpszFontRes, lpszFontFile, lpszCurrentPath: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM CreateScalableFontResource}
- {$ELSE}
- function CreateScalableFontResource(fdwHidden: DWORD; lpszFontRes, lpszFontFile, lpszCurrentPath: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM CreateScalableFontResource}
- {$ENDIF}
- function CreateSolidBrush(crColor: COLORREF): HBRUSH; stdcall;
- {$EXTERNALSYM CreateSolidBrush}
- function DeleteDC(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM DeleteDC}
- function DeleteMetaFile(hmf: HMETAFILE): BOOL; stdcall;
- {$EXTERNALSYM DeleteMetaFile}
- function DeleteObject(hObject: HGDIOBJ): BOOL; stdcall;
- {$EXTERNALSYM DeleteObject}
- function DescribePixelFormat(hdc: HDC; iPixelFormat: Integer; nBytes: UINT; ppfd: LPPIXELFORMATDESCRIPTOR): Integer; stdcall;
- {$EXTERNALSYM DescribePixelFormat}
- // mode selections for the device mode function
- const
- DM_UPDATE = 1;
- {$EXTERNALSYM DM_UPDATE}
- DM_COPY = 2;
- {$EXTERNALSYM DM_COPY}
- DM_PROMPT = 4;
- {$EXTERNALSYM DM_PROMPT}
- DM_MODIFY = 8;
- {$EXTERNALSYM DM_MODIFY}
- DM_IN_BUFFER = DM_MODIFY;
- {$EXTERNALSYM DM_IN_BUFFER}
- DM_IN_PROMPT = DM_PROMPT;
- {$EXTERNALSYM DM_IN_PROMPT}
- DM_OUT_BUFFER = DM_COPY;
- {$EXTERNALSYM DM_OUT_BUFFER}
- DM_OUT_DEFAULT = DM_UPDATE;
- {$EXTERNALSYM DM_OUT_DEFAULT}
- // device capabilities indices
- DC_FIELDS = 1;
- {$EXTERNALSYM DC_FIELDS}
- DC_PAPERS = 2;
- {$EXTERNALSYM DC_PAPERS}
- DC_PAPERSIZE = 3;
- {$EXTERNALSYM DC_PAPERSIZE}
- DC_MINEXTENT = 4;
- {$EXTERNALSYM DC_MINEXTENT}
- DC_MAXEXTENT = 5;
- {$EXTERNALSYM DC_MAXEXTENT}
- DC_BINS = 6;
- {$EXTERNALSYM DC_BINS}
- DC_DUPLEX = 7;
- {$EXTERNALSYM DC_DUPLEX}
- DC_SIZE = 8;
- {$EXTERNALSYM DC_SIZE}
- DC_EXTRA = 9;
- {$EXTERNALSYM DC_EXTRA}
- DC_VERSION = 10;
- {$EXTERNALSYM DC_VERSION}
- DC_DRIVER = 11;
- {$EXTERNALSYM DC_DRIVER}
- DC_BINNAMES = 12;
- {$EXTERNALSYM DC_BINNAMES}
- DC_ENUMRESOLUTIONS = 13;
- {$EXTERNALSYM DC_ENUMRESOLUTIONS}
- DC_FILEDEPENDENCIES = 14;
- {$EXTERNALSYM DC_FILEDEPENDENCIES}
- DC_TRUETYPE = 15;
- {$EXTERNALSYM DC_TRUETYPE}
- DC_PAPERNAMES = 16;
- {$EXTERNALSYM DC_PAPERNAMES}
- DC_ORIENTATION = 17;
- {$EXTERNALSYM DC_ORIENTATION}
- DC_COPIES = 18;
- {$EXTERNALSYM DC_COPIES}
- DC_BINADJUST = 19;
- {$EXTERNALSYM DC_BINADJUST}
- DC_EMF_COMPLIANT = 20;
- {$EXTERNALSYM DC_EMF_COMPLIANT}
- DC_DATATYPE_PRODUCED = 21;
- {$EXTERNALSYM DC_DATATYPE_PRODUCED}
- DC_COLLATE = 22;
- {$EXTERNALSYM DC_COLLATE}
- DC_MANUFACTURER = 23;
- {$EXTERNALSYM DC_MANUFACTURER}
- DC_MODEL = 24;
- {$EXTERNALSYM DC_MODEL}
- DC_PERSONALITY = 25;
- {$EXTERNALSYM DC_PERSONALITY}
- DC_PRINTRATE = 26;
- {$EXTERNALSYM DC_PRINTRATE}
- DC_PRINTRATEUNIT = 27;
- {$EXTERNALSYM DC_PRINTRATEUNIT}
- PRINTRATEUNIT_PPM = 1;
- {$EXTERNALSYM PRINTRATEUNIT_PPM}
- PRINTRATEUNIT_CPS = 2;
- {$EXTERNALSYM PRINTRATEUNIT_CPS}
- PRINTRATEUNIT_LPM = 3;
- {$EXTERNALSYM PRINTRATEUNIT_LPM}
- PRINTRATEUNIT_IPM = 4;
- {$EXTERNALSYM PRINTRATEUNIT_IPM}
- DC_PRINTERMEM = 28;
- {$EXTERNALSYM DC_PRINTERMEM}
- DC_MEDIAREADY = 29;
- {$EXTERNALSYM DC_MEDIAREADY}
- DC_STAPLE = 30;
- {$EXTERNALSYM DC_STAPLE}
- DC_PRINTRATEPPM = 31;
- {$EXTERNALSYM DC_PRINTRATEPPM}
- DC_COLORDEVICE = 32;
- {$EXTERNALSYM DC_COLORDEVICE}
- DC_NUP = 33;
- {$EXTERNALSYM DC_NUP}
- DC_MEDIATYPENAMES = 34;
- {$EXTERNALSYM DC_MEDIATYPENAMES}
- DC_MEDIATYPES = 35;
- {$EXTERNALSYM DC_MEDIATYPES}
- // bit fields of the return value (DWORD) for DC_TRUETYPE
- DCTT_BITMAP = $0000001;
- {$EXTERNALSYM DCTT_BITMAP}
- DCTT_DOWNLOAD = $0000002;
- {$EXTERNALSYM DCTT_DOWNLOAD}
- DCTT_SUBDEV = $0000004;
- {$EXTERNALSYM DCTT_SUBDEV}
- DCTT_DOWNLOAD_OUTLINE = $0000008;
- {$EXTERNALSYM DCTT_DOWNLOAD_OUTLINE}
- // return values for DC_BINADJUST
- DCBA_FACEUPNONE = $0000;
- {$EXTERNALSYM DCBA_FACEUPNONE}
- DCBA_FACEUPCENTER = $0001;
- {$EXTERNALSYM DCBA_FACEUPCENTER}
- DCBA_FACEUPLEFT = $0002;
- {$EXTERNALSYM DCBA_FACEUPLEFT}
- DCBA_FACEUPRIGHT = $0003;
- {$EXTERNALSYM DCBA_FACEUPRIGHT}
- DCBA_FACEDOWNNONE = $0100;
- {$EXTERNALSYM DCBA_FACEDOWNNONE}
- DCBA_FACEDOWNCENTER = $0101;
- {$EXTERNALSYM DCBA_FACEDOWNCENTER}
- DCBA_FACEDOWNLEFT = $0102;
- {$EXTERNALSYM DCBA_FACEDOWNLEFT}
- DCBA_FACEDOWNRIGHT = $0103;
- {$EXTERNALSYM DCBA_FACEDOWNRIGHT}
- function DeviceCapabilitiesA(pDevice, pPort: LPCSTR; fwCapability: WORD; pOutput: LPSTR; pDevMode: LPDEVMODEA): Integer; stdcall;
- {$EXTERNALSYM DeviceCapabilitiesA}
- function DeviceCapabilitiesW(pDevice, pPort: LPCWSTR; fwCapability: WORD; pOutput: LPWSTR; pDevMode: LPDEVMODEW): Integer; stdcall;
- {$EXTERNALSYM DeviceCapabilitiesW}
- {$IFDEF UNICODE}
- function DeviceCapabilities(pDevice, pPort: LPCWSTR; fwCapability: WORD; pOutput: LPWSTR; pDevMode: LPDEVMODEW): Integer; stdcall;
- {$EXTERNALSYM DeviceCapabilities}
- {$ELSE}
- function DeviceCapabilities(pDevice, pPort: LPCSTR; fwCapability: WORD; pOutput: LPSTR; pDevMode: LPDEVMODEA): Integer; stdcall;
- {$EXTERNALSYM DeviceCapabilities}
- {$ENDIF}
- function DrawEscape(hdc: HDC; nEscape, cbInput: Integer; lpszInData: LPCSTR): Integer; stdcall;
- {$EXTERNALSYM DrawEscape}
- function Ellipse(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): BOOL; stdcall;
- {$EXTERNALSYM Ellipse}
- function EnumFontFamiliesExA(hdc: HDC; lpLogFont: LPLOGFONTA; lpEnumFontFamExProc: FONTENUMPROCA; lParam: LPARAM; dwFlags: DWORD): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamiliesExA}
- function EnumFontFamiliesExW(hdc: HDC; lpLogFont: LPLOGFONTW; lpEnumFontFamExProc: FONTENUMPROCW; lParam: LPARAM; dwFlags: DWORD): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamiliesExW}
- {$IFDEF UNICODE}
- function EnumFontFamiliesEx(hdc: HDC; lpLogFont: LPLOGFONTW; lpEnumFontFamExProc: FONTENUMPROCW; lParam: LPARAM; dwFlags: DWORD): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamiliesEx}
- {$ELSE}
- function EnumFontFamiliesEx(hdc: HDC; lpLogFont: LPLOGFONTA; lpEnumFontFamExProc: FONTENUMPROCA; lParam: LPARAM; dwFlags: DWORD): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamiliesEx}
- {$ENDIF}
- function EnumFontFamiliesA(hdc: HDC; lpszFamily: LPCSTR; lpEnumFontFamProc: FONTENUMPROCA; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamiliesA}
- function EnumFontFamiliesW(hdc: HDC; lpszFamily: LPCWSTR; lpEnumFontFamProc: FONTENUMPROCW; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamiliesW}
- {$IFDEF UNICODE}
- function EnumFontFamilies(hdc: HDC; lpszFamily: LPCWSTR; lpEnumFontFamProc: FONTENUMPROCW; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamilies}
- {$ELSE}
- function EnumFontFamilies(hdc: HDC; lpszFamily: LPCSTR; lpEnumFontFamProc: FONTENUMPROCA; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamilies}
- {$ENDIF}
- function EnumFontsA(hdc: HDC; lpFaceName: LPCSTR; lpFontFunc: FONTENUMPROCA; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFontsA}
- function EnumFontsW(hdc: HDC; lpFaceName: LPCWSTR; lpFontFunc: FONTENUMPROCW; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFontsW}
- {$IFDEF UNICODE}
- function EnumFonts(hdc: HDC; lpFaceName: LPCWSTR; lpFontFunc: FONTENUMPROCW; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFonts}
- {$ELSE}
- function EnumFonts(hdc: HDC; lpFaceName: LPCSTR; lpFontFunc: FONTENUMPROCA; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFonts}
- {$ENDIF}
- function EnumObjects(hdc: HDC; mObjectType: Integer; lpObjectFunc: GOBJENUMPROC; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumObjects}
- function EqualRgn(hSrcRgn1, hSrcRgn2: HRGN): BOOL; stdcall;
- {$EXTERNALSYM EqualRgn}
- function Escape(hdc: HDC; nEscape, cbInput: Integer; lpvInData: LPCSTR; lpvOutData: LPVOID): Integer; stdcall;
- {$EXTERNALSYM Escape}
- function ExtEscape(hdc: HDC; nEscape, cbInput: Integer; lpszInData: LPCSTR; cbOutput: Integer; lpszOutData: LPSTR): Integer; stdcall;
- {$EXTERNALSYM ExtEscape}
- function ExcludeClipRect(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): Integer; stdcall;
- {$EXTERNALSYM ExcludeClipRect}
- function ExtCreateRegion(lpXForm: LPXFORM; nCount: DWORD; lpRgnData: LPRGNDATA): HRGN; stdcall;
- {$EXTERNALSYM ExtCreateRegion}
- function ExtFloodFill(hdc: HDC; nXStart, nYStart: Integer; crColor: COLORREF; fuFillType: UINT): BOOL; stdcall;
- {$EXTERNALSYM ExtFloodFill}
- function FillRgn(hdc: HDC; hrgn: HRGN; hbr: HBRUSH): BOOL; stdcall;
- {$EXTERNALSYM FillRgn}
- function FloodFill(hdc: HDC; nXStart, nYStart: Integer; crFill: COLORREF): BOOL; stdcall;
- {$EXTERNALSYM FloodFill}
- function FrameRgn(hdc: HDC; hrgn: HRGN; hbr: HBRUSH; nWidth, nHeight: Integer): BOOL; stdcall;
- {$EXTERNALSYM FrameRgn}
- function GetROP2(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetROP2}
- function GetAspectRatioFilterEx(hdc: HDC; var lpAspectRatio: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetAspectRatioFilterEx}
- function GetBkColor(hdc: HDC): COLORREF; stdcall;
- {$EXTERNALSYM GetBkColor}
- function GetDCBrushColor(hdc: HDC): COLORREF; stdcall;
- {$EXTERNALSYM GetDCBrushColor}
- function GetDCPenColor(hdc: HDC): COLORREF; stdcall;
- {$EXTERNALSYM GetDCPenColor}
- function GetBkMode(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetBkMode}
- function GetBitmapBits(hbmp: HBITMAP; cbBuffer: LONG; lpvBits: LPVOID): LONG; stdcall;
- {$EXTERNALSYM GetBitmapBits}
- function GetBitmapDimensionEx(hBitmap: HBITMAP; var lpDimension: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetBitmapDimensionEx}
- function GetBoundsRect(hdc: HDC; var lprcBounds: RECT; flags: UINT): UINT; stdcall;
- {$EXTERNALSYM GetBoundsRect}
- function GetBrushOrgEx(hdc: HDC; var lppt: POINT): BOOL; stdcall;
- {$EXTERNALSYM GetBrushOrgEx}
- function GetCharWidthA(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthA}
- function GetCharWidthW(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthW}
- {$IFDEF UNICODE}
- function GetCharWidth(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidth}
- {$ELSE}
- function GetCharWidth(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidth}
- {$ENDIF}
- function GetCharWidth32A(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidth32A}
- function GetCharWidth32W(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidth32W}
- {$IFDEF UNICODE}
- function GetCharWidth32(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidth32}
- {$ELSE}
- function GetCharWidth32(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidth32}
- {$ENDIF}
- function GetCharWidthFloatA(hdc: HDC; iFirstChar, iLastChar: UINT; pxBuffer: PFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthFloatA}
- function GetCharWidthFloatW(hdc: HDC; iFirstChar, iLastChar: UINT; pxBuffer: PFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthFloatW}
- {$IFDEF UNICODE}
- function GetCharWidthFloat(hdc: HDC; iFirstChar, iLastChar: UINT; pxBuffer: PFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthFloat}
- {$ELSE}
- function GetCharWidthFloat(hdc: HDC; iFirstChar, iLastChar: UINT; pxBuffer: PFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthFloat}
- {$ENDIF}
- function GetCharABCWidthsA(hdc: HDC; uFirstChar, uLastChar: UINT; lpAbc: LPABC): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsA}
- function GetCharABCWidthsW(hdc: HDC; uFirstChar, uLastChar: UINT; lpAbc: LPABC): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsW}
- {$IFDEF UNICODE}
- function GetCharABCWidths(hdc: HDC; uFirstChar, uLastChar: UINT; lpAbc: LPABC): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidths}
- {$ELSE}
- function GetCharABCWidths(hdc: HDC; uFirstChar, uLastChar: UINT; lpAbc: LPABC): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidths}
- {$ENDIF}
- function GetCharABCWidthsFloatA(hdc: HDC; iFirstChar, iLastChar: UINT; lpAbcF: LPABCFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsFloatA}
- function GetCharABCWidthsFloatW(hdc: HDC; iFirstChar, iLastChar: UINT; lpAbcF: LPABCFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsFloatW}
- {$IFDEF UNICODE}
- function GetCharABCWidthsFloat(hdc: HDC; iFirstChar, iLastChar: UINT; lpAbcF: LPABCFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsFloat}
- {$ELSE}
- function GetCharABCWidthsFloat(hdc: HDC; iFirstChar, iLastChar: UINT; lpAbcF: LPABCFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsFloat}
- {$ENDIF}
- function GetClipBox(hdc: HDC; var lprc: RECT): Integer; stdcall;
- {$EXTERNALSYM GetClipBox}
- function GetClipRgn(hdc: HDC; hrgn: HRGN): Integer; stdcall;
- {$EXTERNALSYM GetClipRgn}
- function GetMetaRgn(hdc: HDC; hrgn: HRGN): Integer; stdcall;
- {$EXTERNALSYM GetMetaRgn}
- function GetCurrentObject(hdc: HDC; uObjectType: UINT): HGDIOBJ; stdcall;
- {$EXTERNALSYM GetCurrentObject}
- function GetCurrentPositionEx(hdc: HDC; var lpPoint: POINT): BOOL; stdcall;
- {$EXTERNALSYM GetCurrentPositionEx}
- function GetDeviceCaps(hdc: HDC; nIndex: Integer): Integer; stdcall;
- {$EXTERNALSYM GetDeviceCaps}
- function GetDIBits(hdc: HDC; hbmp: HBITMAP; uStartScan, cScanLines: UINT; lpvBits: LPVOID; var lpbi: BITMAPINFO; uUsage: UINT): Integer; stdcall;
- {$EXTERNALSYM GetDIBits}
- function GetFontData(hdc: HDC; dwTable, dwOffset: DWORD; lpvBuffer: LPVOID; cbData: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetFontData}
- function GetGlyphOutlineA(hdc: HDC; uChar, uFormat: UINT; var lpgm: GLYPHMETRICS; cbBuffer: DWORD; lpvBuffer: LPVOID; const lpMat2: MAT2): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphOutlineA}
- function GetGlyphOutlineW(hdc: HDC; uChar, uFormat: UINT; var lpgm: GLYPHMETRICS; cbBuffer: DWORD; lpvBuffer: LPVOID; const lpMat2: MAT2): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphOutlineW}
- {$IFDEF UNICODE}
- function GetGlyphOutline(hdc: HDC; uChar, uFormat: UINT; var lpgm: GLYPHMETRICS; cbBuffer: DWORD; lpvBuffer: LPVOID; const lpMat2: MAT2): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphOutline}
- {$ELSE}
- function GetGlyphOutline(hdc: HDC; uChar, uFormat: UINT; var lpgm: GLYPHMETRICS; cbBuffer: DWORD; lpvBuffer: LPVOID; const lpMat2: MAT2): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphOutline}
- {$ENDIF}
- function GetGraphicsMode(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetGraphicsMode}
- function GetMapMode(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetMapMode}
- function GetMetaFileBitsEx(hmf: HMETAFILE; nSize: UINT; lpvData: LPVOID): UINT; stdcall;
- {$EXTERNALSYM GetMetaFileBitsEx}
- function GetMetaFileA(lpszMetaFile: LPCSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM GetMetaFileA}
- function GetMetaFileW(lpszMetaFile: LPCWSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM GetMetaFileW}
- {$IFDEF UNICODE}
- function GetMetaFile(lpszMetaFile: LPCWSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM GetMetaFile}
- {$ELSE}
- function GetMetaFile(lpszMetaFile: LPCSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM GetMetaFile}
- {$ENDIF}
- function GetNearestColor(hdc: HDC; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM GetNearestColor}
- function GetNearestPaletteIndex(hPal: HPALETTE; crColor: COLORREF): UINT; stdcall;
- {$EXTERNALSYM GetNearestPaletteIndex}
- function GetObjectType(h: HGDIOBJ): DWORD; stdcall;
- {$EXTERNALSYM GetObjectType}
- function GetOutlineTextMetricsA(hdc: HDC; cbData: UINT; lpOTM: LPOUTLINETEXTMETRICA): UINT; stdcall;
- {$EXTERNALSYM GetOutlineTextMetricsA}
- function GetOutlineTextMetricsW(hdc: HDC; cbData: UINT; lpOTM: LPOUTLINETEXTMETRICW): UINT; stdcall;
- {$EXTERNALSYM GetOutlineTextMetricsW}
- {$IFDEF UNICODE}
- function GetOutlineTextMetrics(hdc: HDC; cbData: UINT; lpOTM: LPOUTLINETEXTMETRICW): UINT; stdcall;
- {$EXTERNALSYM GetOutlineTextMetrics}
- {$ELSE}
- function GetOutlineTextMetrics(hdc: HDC; cbData: UINT; lpOTM: LPOUTLINETEXTMETRICA): UINT; stdcall;
- {$EXTERNALSYM GetOutlineTextMetrics}
- {$ENDIF}
- function GetPaletteEntries(hPal: HPALETTE; iStartIndex, nEntries: UINT; lppe: LPPALETTEENTRY): UINT; stdcall;
- {$EXTERNALSYM GetPaletteEntries}
- function GetPixel(hdc: HDC; nXPos, nYPos: Integer): COLORREF; stdcall;
- {$EXTERNALSYM GetPixel}
- function GetPixelFormat(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetPixelFormat}
- function GetPolyFillMode(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetPolyFillMode}
- function GetRasterizerCaps(var lprs: RASTERIZER_STATUS; cb: UINT): BOOL; stdcall;
- {$EXTERNALSYM GetRasterizerCaps}
- function GetRandomRgn(hdc: HDC; hrgn: HRGN; iNum: Integer): Integer; stdcall;
- {$EXTERNALSYM GetRandomRgn}
- function GetRegionData(hrgn: HRGN; dwCount: DWORD; lpRgnData: LPRGNDATA): DWORD; stdcall;
- {$EXTERNALSYM GetRegionData}
- function GetRgnBox(hrgn: HRGN; var lprc: RECT): Integer; stdcall;
- {$EXTERNALSYM GetRgnBox}
- function GetStockObject(fnObject: Integer): HGDIOBJ; stdcall;
- {$EXTERNALSYM GetStockObject}
- function GetStretchBltMode(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetStretchBltMode}
- function GetSystemPaletteEntries(hdc: HDC; iStartIndex, nEntries: UINT; lppe: LPPALETTEENTRY): UINT; stdcall;
- {$EXTERNALSYM GetSystemPaletteEntries}
- function GetSystemPaletteUse(hdc: HDC): UINT; stdcall;
- {$EXTERNALSYM GetSystemPaletteUse}
- function GetTextCharacterExtra(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetTextCharacterExtra}
- function GetTextAlign(hdc: HDC): UINT; stdcall;
- {$EXTERNALSYM GetTextAlign}
- function GetTextColor(hdc: HDC): COLORREF; stdcall;
- {$EXTERNALSYM GetTextColor}
- function GetTextExtentPointA(hdc: HDC; lpString: LPCSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPointA}
- function GetTextExtentPointW(hdc: HDC; lpString: LPCWSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPointW}
- {$IFDEF UNICODE}
- function GetTextExtentPoint(hdc: HDC; lpString: LPCWSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPoint}
- {$ELSE}
- function GetTextExtentPoint(hdc: HDC; lpString: LPCSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPoint}
- {$ENDIF}
- function GetTextExtentPoint32A(hdc: HDC; lpString: LPCSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPoint32A}
- function GetTextExtentPoint32W(hdc: HDC; lpString: LPCWSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPoint32W}
- {$IFDEF UNICODE}
- function GetTextExtentPoint32(hdc: HDC; lpString: LPCWSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPoint32}
- {$ELSE}
- function GetTextExtentPoint32(hdc: HDC; lpString: LPCSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPoint32}
- {$ENDIF}
- function GetTextExtentExPointA(hdc: HDC; lpszStr: LPCSTR; cchString, nMaxExtend: Integer; lpnFit, alpDx: LPINT; var lpSize: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentExPointA}
- function GetTextExtentExPointW(hdc: HDC; lpszStr: LPCWSTR; cchString, nMaxExtend: Integer; lpnFit, alpDx: LPINT; var lpSize: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentExPointW}
- {$IFDEF UNICODE}
- function GetTextExtentExPoint(hdc: HDC; lpszStr: LPCWSTR; cchString, nMaxExtend: Integer; lpnFit, alpDx: LPINT; var lpSize: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentExPoint}
- {$ELSE}
- function GetTextExtentExPoint(hdc: HDC; lpszStr: LPCSTR; cchString, nMaxExtend: Integer; lpnFit, alpDx: LPINT; var lpSize: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentExPoint}
- {$ENDIF}
- function GetTextCharset(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetTextCharset}
- function GetTextCharsetInfo(hdc: HDC; lpSig: LPFONTSIGNATURE; dwFlags: DWORD): Integer; stdcall;
- {$EXTERNALSYM GetTextCharsetInfo}
- function TranslateCharsetInfo(lpSrc: LPDWORD; lpCs: LPCHARSETINFO; dwFlags: DWORD): BOOL; stdcall;
- {$EXTERNALSYM TranslateCharsetInfo}
- function GetFontLanguageInfo(hdc: HDC): DWORD; stdcall;
- {$EXTERNALSYM GetFontLanguageInfo}
- function GetCharacterPlacementA(hdc: HDC; lpString: LPCSTR; nCount, nMaxExtend: Integer; var lpResults: GCP_RESULTSA; dwFlags: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetCharacterPlacementA}
- function GetCharacterPlacementW(hdc: HDC; lpString: LPCWSTR; nCount, nMaxExtend: Integer; var lpResults: GCP_RESULTSW; dwFlags: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetCharacterPlacementW}
- {$IFDEF UNICODE}
- function GetCharacterPlacement(hdc: HDC; lpString: LPCWSTR; nCount, nMaxExtend: Integer; var lpResults: GCP_RESULTSW; dwFlags: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetCharacterPlacement}
- {$ELSE}
- function GetCharacterPlacement(hdc: HDC; lpString: LPCSTR; nCount, nMaxExtend: Integer; var lpResults: GCP_RESULTSA; dwFlags: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetCharacterPlacement}
- {$ENDIF}
- type
- PWcRange = ^TWcRange;
- tagWCRANGE = record
- wcLow: WCHAR;
- cGlyphs: USHORT;
- end;
- {$EXTERNALSYM tagWCRANGE}
- WCRANGE = tagWCRANGE;
- {$EXTERNALSYM WCRANGE}
- LPWCRANGE = ^WCRANGE;
- {$EXTERNALSYM LPWCRANGE}
- TWcRange = WCRANGE;
- PGlyphSet = ^TGlyphSet;
- tagGLYPHSET = record
- cbThis: DWORD;
- flAccel: DWORD;
- cGlyphsSupported: DWORD;
- cRanges: DWORD;
- ranges: array [0..0] of WCRANGE;
- end;
- {$EXTERNALSYM tagGLYPHSET}
- GLYPHSET = tagGLYPHSET;
- {$EXTERNALSYM GLYPHSET}
- LPGLYPHSET = ^GLYPHSET;
- {$EXTERNALSYM LPGLYPHSET}
- TGlyphSet = GLYPHSET;
- // flAccel flags for the GLYPHSET structure above
- const
- GS_8BIT_INDICES = $00000001;
- {$EXTERNALSYM GS_8BIT_INDICES}
- // flags for GetGlyphIndices
- GGI_MARK_NONEXISTING_GLYPHS = $0001;
- {$EXTERNALSYM GGI_MARK_NONEXISTING_GLYPHS}
- function GetFontUnicodeRanges(hdc: HDC; lpgs: LPGLYPHSET): DWORD; stdcall;
- {$EXTERNALSYM GetFontUnicodeRanges}
- function GetGlyphIndicesA(hdc: HDC; lpstr: LPCSTR; c: Integer; pgi: LPWORD; fl: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphIndicesA}
- function GetGlyphIndicesW(hdc: HDC; lpstr: LPCWSTR; c: Integer; pgi: LPWORD; fl: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphIndicesW}
- {$IFDEF UNICODE}
- function GetGlyphIndices(hdc: HDC; lpstr: LPCWSTR; c: Integer; pgi: LPWORD; fl: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphIndices}
- {$ELSE}
- function GetGlyphIndices(hdc: HDC; lpstr: LPCSTR; c: Integer; pgi: LPWORD; fl: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphIndices}
- {$ENDIF}
- function GetTextExtentPointI(hdc: HDC; pgiIn: LPWORD; cgi: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPointI}
- function GetTextExtentExPointI(hdc: HDC; pgiIn: LPWORD; cgi, nMaxExtend: Integer;
- lpnFit, alpDx: LPINT; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentExPointI}
- function GetCharWidthI(hdc: HDC; giFirst, cgi: UINT; pgi: LPWORD; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthI}
- function GetCharABCWidthsI(hdc: HDC; giFirst, cgi: UINT; pgi: LPWORD; lpAbc: LPABC): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsI}
- const
- STAMP_DESIGNVECTOR = ($8000000 + Ord('d') + (Ord('v') shl 8));
- {$EXTERNALSYM STAMP_DESIGNVECTOR}
- STAMP_AXESLIST = ($8000000 + Ord('a') + (Ord('l') shl 8));
- {$EXTERNALSYM STAMP_AXESLIST}
- MM_MAX_NUMAXES = 16;
- {$EXTERNALSYM MM_MAX_NUMAXES}
- type
- PDesignVector = ^TDesignVector;
- tagDESIGNVECTOR = record
- dvReserved: DWORD;
- dvNumAxes: DWORD;
- dvValues: array [0..MM_MAX_NUMAXES - 1] of LONG;
- end;
- {$EXTERNALSYM tagDESIGNVECTOR}
- DESIGNVECTOR = tagDESIGNVECTOR;
- {$EXTERNALSYM DESIGNVECTOR}
- LPDESIGNVECTOR = ^DESIGNVECTOR;
- {$EXTERNALSYM LPDESIGNVECTOR}
- TDesignVector = DESIGNVECTOR;
- function AddFontResourceExA(lpszFilename: LPCSTR; fl: DWORD; pdv: PVOID): Integer; stdcall;
- {$EXTERNALSYM AddFontResourceExA}
- function AddFontResourceExW(lpszFilename: LPCWSTR; fl: DWORD; pdv: PVOID): Integer; stdcall;
- {$EXTERNALSYM AddFontResourceExW}
- {$IFDEF UNICODE}
- function AddFontResourceEx(lpszFilename: LPCWSTR; fl: DWORD; pdv: PVOID): Integer; stdcall;
- {$EXTERNALSYM AddFontResourceEx}
- {$ELSE}
- function AddFontResourceEx(lpszFilename: LPCSTR; fl: DWORD; pdv: PVOID): Integer; stdcall;
- {$EXTERNALSYM AddFontResourceEx}
- {$ENDIF}
- function RemoveFontResourceExA(lpFilename: LPCSTR; fl: DWORD; pdv: PVOID): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResourceExA}
- function RemoveFontResourceExW(lpFilename: LPCWSTR; fl: DWORD; pdv: PVOID): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResourceExW}
- {$IFDEF UNICODE}
- function RemoveFontResourceEx(lpFilename: LPCWSTR; fl: DWORD; pdv: PVOID): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResourceEx}
- {$ELSE}
- function RemoveFontResourceEx(lpFilename: LPCSTR; fl: DWORD; pdv: PVOID): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResourceEx}
- {$ENDIF}
- function AddFontMemResourceEx(pbFont: PVOID; cbFont: DWORD; pdv: PVOID; pcFonts: LPDWORD): HANDLE; stdcall;
- {$EXTERNALSYM AddFontMemResourceEx}
- function RemoveFontMemResourceEx(fh: HANDLE): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontMemResourceEx}
- const
- FR_PRIVATE = $10;
- {$EXTERNALSYM FR_PRIVATE}
- FR_NOT_ENUM = $20;
- {$EXTERNALSYM FR_NOT_ENUM}
- // The actual size of the DESIGNVECTOR and ENUMLOGFONTEXDV structures
- // is determined by dvNumAxes,
- // MM_MAX_NUMAXES only detemines the maximal size allowed
- const
- MM_MAX_AXES_NAMELEN = 16;
- {$EXTERNALSYM MM_MAX_AXES_NAMELEN}
- type
- PAxisInfoA = ^TAxisInfoA;
- tagAXISINFOA = record
- axMinValue: LONG;
- axMaxValue: LONG;
- axAxisName: array [0..MM_MAX_AXES_NAMELEN - 1] of BYTE;
- end;
- {$EXTERNALSYM tagAXISINFOA}
- AXISINFOA = tagAXISINFOA;
- {$EXTERNALSYM AXISINFOA}
- LPAXISINFOA = ^AXISINFOA;
- {$EXTERNALSYM LPAXISINFOA}
- TAxisInfoA = AXISINFOA;
- PAxisInfoW = ^TAxisInfoW;
- tagAXISINFOW = record
- axMinValue: LONG;
- axMaxValue: LONG;
- axAxisName: array [0..MM_MAX_AXES_NAMELEN - 1] of WCHAR;
- end;
- {$EXTERNALSYM tagAXISINFOW}
- AXISINFOW = tagAXISINFOW;
- {$EXTERNALSYM AXISINFOW}
- LPAXISINFOW = ^AXISINFOW;
- {$EXTERNALSYM LPAXISINFOW}
- TAxisInfoW = AXISINFOW;
- {$IFDEF UNICODE}
- AXISINFO = AXISINFOW;
- {$EXTERNALSYM AXISINFO}
- PAXISINFO = PAXISINFOW;
- {$EXTERNALSYM PAXISINFO}
- LPAXISINFO = LPAXISINFOW;
- {$EXTERNALSYM LPAXISINFO}
- TAxisInfo = TAxisInfoW;
- {$ELSE}
- AXISINFO = AXISINFOA;
- {$EXTERNALSYM AXISINFO}
- PAXISINFO = PAXISINFOA;
- {$EXTERNALSYM PAXISINFO}
- LPAXISINFO = LPAXISINFOA;
- {$EXTERNALSYM LPAXISINFO}
- TAxisInfo = TAxisInfoA;
- {$ENDIF}
- PAxesListA = ^TAxesListA;
- tagAXESLISTA = record
- axlReserved: DWORD;
- axlNumAxes: DWORD;
- axlAxisInfo: array [0..MM_MAX_NUMAXES - 1] of AXISINFOA;
- end;
- {$EXTERNALSYM tagAXESLISTA}
- AXESLISTA = tagAXESLISTA;
- {$EXTERNALSYM AXESLISTA}
- LPAXESLISTA = ^AXESLISTA;
- {$EXTERNALSYM LPAXESLISTA}
- TAxesListA = tagAXESLISTA;
- PAxesListW = ^TAxesListW;
- tagAXESLISTW = record
- axlReserved: DWORD;
- axlNumAxes: DWORD;
- axlAxisInfo: array [0..MM_MAX_NUMAXES - 1] of AXISINFOW;
- end;
- {$EXTERNALSYM tagAXESLISTW}
- AXESLISTW = tagAXESLISTW;
- {$EXTERNALSYM AXESLISTW}
- LPAXESLISTW = ^AXESLISTW;
- {$EXTERNALSYM LPAXESLISTW}
- TAxesListW = tagAXESLISTW;
- {$IFDEF UNICODE}
- AXESLIST = AXESLISTW;
- {$EXTERNALSYM AXESLIST}
- PAXESLIST = PAXESLISTW;
- {$EXTERNALSYM PAXESLIST}
- LPAXESLIST = LPAXESLISTW;
- {$EXTERNALSYM LPAXESLIST}
- TAxesList = TAxesListW;
- {$ELSE}
- AXESLIST = AXESLISTA;
- {$EXTERNALSYM AXESLIST}
- PAXESLIST = PAXESLISTA;
- {$EXTERNALSYM PAXESLIST}
- LPAXESLIST = LPAXESLISTA;
- {$EXTERNALSYM LPAXESLIST}
- TAxesList = TAxesListA;
- {$ENDIF}
- // The actual size of the AXESLIST and ENUMTEXTMETRIC structure is
- // determined by axlNumAxes,
- // MM_MAX_NUMAXES only detemines the maximal size allowed
- PEnumLogFontExDVA = ^TEnumLogFontExDVA;
- tagENUMLOGFONTEXDVA = record
- elfEnumLogfontEx: ENUMLOGFONTEXA;
- elfDesignVector: DESIGNVECTOR;
- end;
- {$EXTERNALSYM tagENUMLOGFONTEXDVA}
- ENUMLOGFONTEXDVA = tagENUMLOGFONTEXDVA;
- {$EXTERNALSYM ENUMLOGFONTEXDVA}
- LPENUMLOGFONTEXDVA = ^ENUMLOGFONTEXDVA;
- {$EXTERNALSYM LPENUMLOGFONTEXDVA}
- TEnumLogFontExDVA = tagENUMLOGFONTEXDVA;
- PEnumLogFontExDVW = ^TEnumLogFontExDVW;
- tagENUMLOGFONTEXDVW = record
- elfEnumLogfontEx: ENUMLOGFONTEXW;
- elfDesignVector: DESIGNVECTOR;
- end;
- {$EXTERNALSYM tagENUMLOGFONTEXDVw}
- ENUMLOGFONTEXDVW = tagENUMLOGFONTEXDVW;
- {$EXTERNALSYM ENUMLOGFONTEXDVW}
- LPENUMLOGFONTEXDVW = ^ENUMLOGFONTEXDVW;
- {$EXTERNALSYM LPENUMLOGFONTEXDVW}
- TEnumLogFontExDVW = tagENUMLOGFONTEXDVW;
- {$IFDEF UNICODE}
- ENUMLOGFONTEXDV = ENUMLOGFONTEXDVW;
- {$EXTERNALSYM ENUMLOGFONTEXDV}
- PENUMLOGFONTEXDV = PENUMLOGFONTEXDVW;
- {$EXTERNALSYM PENUMLOGFONTEXDV}
- LPENUMLOGFONTEXDV = LPENUMLOGFONTEXDVW;
- {$EXTERNALSYM LPENUMLOGFONTEXDV}
- TEnumLogFontExDV = TEnumLogFontExDVW;
- {$ELSE}
- ENUMLOGFONTEXDV = ENUMLOGFONTEXDVA;
- {$EXTERNALSYM ENUMLOGFONTEXDV}
- PENUMLOGFONTEXDV = PENUMLOGFONTEXDVA;
- {$EXTERNALSYM PENUMLOGFONTEXDV}
- LPENUMLOGFONTEXDV = LPENUMLOGFONTEXDVA;
- {$EXTERNALSYM LPENUMLOGFONTEXDV}
- TEnumLogFontExDV = TEnumLogFontExDVA;
- {$ENDIF}
- function CreateFontIndirectExA(penumlfex: LPENUMLOGFONTEXDVA): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirectExA}
- function CreateFontIndirectExW(penumlfex: LPENUMLOGFONTEXDVW): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirectExW}
- {$IFDEF UNICODE}
- function CreateFontIndirectEx(penumlfex: LPENUMLOGFONTEXDVW): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirectEx}
- {$ELSE}
- function CreateFontIndirectEx(penumlfex: LPENUMLOGFONTEXDVA): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirectEx}
- {$ENDIF}
- type
- PEnumTextMetricA = ^TEnumTextMetricA;
- tagENUMTEXTMETRICA = record
- etmNewTextMetricEx: NEWTEXTMETRICEXA;
- etmAxesList: AXESLISTA;
- end;
- {$EXTERNALSYM tagENUMTEXTMETRICA}
- ENUMTEXTMETRICA = tagENUMTEXTMETRICA;
- {$EXTERNALSYM ENUMTEXTMETRICA}
- LPENUMTEXTMETRICA = ^ENUMTEXTMETRICA;
- {$EXTERNALSYM LPENUMTEXTMETRICA}
- TEnumTextMetricA = tagENUMTEXTMETRICA;
- PEnumTextMetricW = ^TEnumTextMetricW;
- tagENUMTEXTMETRICW = record
- etmNewTextMetricEx: NEWTEXTMETRICEXW;
- etmAxesList: AXESLISTW;
- end;
- {$EXTERNALSYM tagENUMTEXTMETRICW}
- ENUMTEXTMETRICW = tagENUMTEXTMETRICW;
- {$EXTERNALSYM ENUMTEXTMETRICW}
- LPENUMTEXTMETRICW = ^ENUMTEXTMETRICW;
- {$EXTERNALSYM LPENUMTEXTMETRICW}
- TEnumTextMetricW = tagENUMTEXTMETRICW;
- {$IFDEF UNICODE}
- ENUMTEXTMETRIC = ENUMTEXTMETRICW;
- {$EXTERNALSYM ENUMTEXTMETRIC}
- PENUMTEXTMETRIC = PENUMTEXTMETRICW;
- {$EXTERNALSYM PENUMTEXTMETRIC}
- LPENUMTEXTMETRIC = LPENUMTEXTMETRICW;
- {$EXTERNALSYM LPENUMTEXTMETRIC}
- TEnumTextMetric = TEnumTextMetricW;
- {$ELSE}
- ENUMTEXTMETRIC = ENUMTEXTMETRICA;
- {$EXTERNALSYM ENUMTEXTMETRIC}
- PENUMTEXTMETRIC = PENUMTEXTMETRICA;
- {$EXTERNALSYM PENUMTEXTMETRIC}
- LPENUMTEXTMETRIC = LPENUMTEXTMETRICA;
- {$EXTERNALSYM LPENUMTEXTMETRIC}
- TEnumTextMetric = TEnumTextMetricA;
- {$ENDIF}
- function GetViewportExtEx(hdc: HDC; var lpSize: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetViewportExtEx}
- function GetViewportOrgEx(hdc: HDC; var lpPoint: POINT): BOOL; stdcall;
- {$EXTERNALSYM GetViewportOrgEx}
- function GetWindowExtEx(hdc: HDC; var lpSize: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetWindowExtEx}
- function GetWindowOrgEx(hdc: HDC; var lpPoint: POINT): BOOL; stdcall;
- {$EXTERNALSYM GetWindowOrgEx}
- function IntersectClipRect(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): Integer; stdcall;
- {$EXTERNALSYM IntersectClipRect}
- function InvertRgn(hdc: HDC; hrgn: HRGN): BOOL; stdcall;
- {$EXTERNALSYM InvertRgn}
- function LineDDA(nXStart, nYStart, nXEnd, nYEnd: Integer; lpLineFunc: LINEDDAPROC; lpData: LPARAM): BOOL; stdcall;
- {$EXTERNALSYM LineDDA}
- function LineTo(hdc: HDC; nXEnd, nYEnd: Integer): BOOL; stdcall;
- {$EXTERNALSYM LineTo}
- function MaskBlt(hdc: HDC; nXDest, nYDest, nWidth, nHeight: Integer; hdcSrc: HDC; nXSrc, nYSrc: Integer; hbmMask: HBITMAP; xMask, yMask: Integer; dwRop: DWORD): BOOL; stdcall;
- {$EXTERNALSYM MaskBlt}
- function PlgBlt(hdc: HDC; lpPoint: LPPOINT; hdcSrc: HDC; nXSrc, nYSrc, nWidth, nHeight: Integer; hbmMask: HBITMAP; xMask, yMask: Integer): BOOL; stdcall;
- {$EXTERNALSYM PlgBlt}
- function OffsetClipRgn(hdc: HDC; nXOffset, nYOffset: Integer): Integer; stdcall;
- {$EXTERNALSYM OffsetClipRgn}
- function OffsetRgn(hrgn: HRGN; nXOffset, nYOffset: Integer): Integer; stdcall;
- {$EXTERNALSYM OffsetRgn}
- function PatBlt(hdc: HDC; nXLeft, nYLeft, nWidth, nHeight: Integer; dwRop: DWORD): BOOL; stdcall;
- {$EXTERNALSYM PatBlt}
- function Pie(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect, nXRadial1, nYRadial1, nXRadial2, nYRadial2: Integer): BOOL; stdcall;
- {$EXTERNALSYM Pie}
- function PlayMetaFile(hdc: HDC; hmf: HMETAFILE): BOOL; stdcall;
- {$EXTERNALSYM PlayMetaFile}
- function PaintRgn(hdc: HDC; hrgn: HRGN): BOOL; stdcall;
- {$EXTERNALSYM PaintRgn}
- function PolyPolygon(hdc: HDC; lpPoints: LPPOINT; lpPolyCounts: LPINT; nCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM PolyPolygon}
- function PtInRegion(hrgn: HRGN; X, Y: Integer): BOOL; stdcall;
- {$EXTERNALSYM PtInRegion}
- function PtVisible(hdc: HDC; X, Y: Integer): BOOL; stdcall;
- {$EXTERNALSYM PtVisible}
- function RectInRegion(hrgn: HRGN; const lprc: RECT): BOOL; stdcall;
- {$EXTERNALSYM RectInRegion}
- function RectVisible(hdc: HDC; const lprc: RECT): BOOL; stdcall;
- {$EXTERNALSYM RectVisible}
- function Rectangle(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): BOOL; stdcall;
- {$EXTERNALSYM Rectangle}
- function RestoreDC(hdc: HDC; nSavedDc: Integer): BOOL; stdcall;
- {$EXTERNALSYM RestoreDC}
- function ResetDCA(hdc: HDC; const lpInitData: DEVMODEA): HDC; stdcall;
- {$EXTERNALSYM ResetDCA}
- function ResetDCW(hdc: HDC; const lpInitData: DEVMODEW): HDC; stdcall;
- {$EXTERNALSYM ResetDCW}
- {$IFDEF UNICODE}
- function ResetDC(hdc: HDC; const lpInitData: DEVMODEW): HDC; stdcall;
- {$EXTERNALSYM ResetDC}
- {$ELSE}
- function ResetDC(hdc: HDC; const lpInitData: DEVMODEA): HDC; stdcall;
- {$EXTERNALSYM ResetDC}
- {$ENDIF}
- function RealizePalette(hdc: HDC): UINT; stdcall;
- {$EXTERNALSYM RealizePalette}
- function RemoveFontResourceA(lpFileName: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResourceA}
- function RemoveFontResourceW(lpFileName: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResourceW}
- {$IFDEF UNICODE}
- function RemoveFontResource(lpFileName: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResource}
- {$ELSE}
- function RemoveFontResource(lpFileName: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResource}
- {$ENDIF}
- function RoundRect(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect, nWidth, nHeight: Integer): BOOL; stdcall;
- {$EXTERNALSYM RoundRect}
- function ResizePalette(hPal: HPALETTE; nEntries: UINT): BOOL; stdcall;
- {$EXTERNALSYM ResizePalette}
- function SaveDC(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM SaveDC}
- function SelectClipRgn(hdc: HDC; hrgn: HRGN): Integer; stdcall;
- {$EXTERNALSYM SelectClipRgn}
- function ExtSelectClipRgn(hdc: HDC; hrgn: HRGN; fnMode: Integer): Integer; stdcall;
- {$EXTERNALSYM ExtSelectClipRgn}
- function SetMetaRgn(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM SetMetaRgn}
- function SelectObject(hdc: HDC; hgdiobj: HGDIOBJ): HGDIOBJ; stdcall;
- {$EXTERNALSYM SelectObject}
- function SelectPalette(hdc: HDC; hpal: HPALETTE; nForceBackground: BOOL): HPALETTE; stdcall;
- {$EXTERNALSYM SelectPalette}
- function SetBkColor(hdc: HDC; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM SetBkColor}
- function SetDCBrushColor(hdc: HDC; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM SetDCBrushColor}
- function SetDCPenColor(hdc: HDC; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM SetDCPenColor}
- function SetBkMode(hdc: HDC; iBlMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetBkMode}
- function SetBitmapBits(hbmp: HBITMAP; cBytes: DWORD; lpBits: LPVOID): LONG; stdcall;
- {$EXTERNALSYM SetBitmapBits}
- function SetBoundsRect(hdc: HDC; lprcBounds: LPRECT; flags: UINT): UINT; stdcall;
- {$EXTERNALSYM SetBoundsRect}
- function SetDIBits(hdc: HDC; hbmp: HBITMAP; uStartScan, cScanLines: UINT; lpvBits: LPVOID; const lpbmi: BITMAPINFO; fuColorUse: UINT): Integer; stdcall;
- {$EXTERNALSYM SetDIBits}
- function SetDIBitsToDevice(hdc: HDC; xDest, yDest: Integer; dwWidth, dwHeight: DWORD; XSrc, YSrc: Integer; uStartScan, cScanLines: UINT; lpvBits: LPVOID; const lpbmi: BITMAPINFO; fuColorUse: UINT): Integer; stdcall;
- {$EXTERNALSYM SetDIBitsToDevice}
- function SetMapperFlags(hdc: HDC; dwFlag: DWORD): DWORD; stdcall;
- {$EXTERNALSYM SetMapperFlags}
- function SetGraphicsMode(hdc: HDC; iMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetGraphicsMode}
- function SetMapMode(hdc: HDC; fnMapMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetMapMode}
- function SetLayout(hdc: HDC; dwLayOut: DWORD): DWORD; stdcall;
- {$EXTERNALSYM SetLayout}
- function GetLayout(hdc: HDC): DWORD; stdcall;
- {$EXTERNALSYM GetLayout}
- function SetMetaFileBitsEx(nSize: UINT; lpData: LPBYTE): HMETAFILE; stdcall;
- {$EXTERNALSYM SetMetaFileBitsEx}
- function SetPaletteEntries(hPal: HPALETTE; cStart, nEntries: UINT; lppe: LPPALETTEENTRY): UINT; stdcall;
- {$EXTERNALSYM SetPaletteEntries}
- function SetPixel(hdc: HDC; X, Y: Integer; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM SetPixel}
- function SetPixelV(hdc: HDC; X, Y: Integer; crColor: COLORREF): BOOL; stdcall;
- {$EXTERNALSYM SetPixelV}
- function SetPixelFormat(hdc: HDC; iPixelFormat: Integer; const ppfd: PIXELFORMATDESCRIPTOR): BOOL; stdcall;
- {$EXTERNALSYM SetPixelFormat}
- function SetPolyFillMode(hdc: HDC; iPolyFillMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetPolyFillMode}
- function StretchBlt(hdc: HDC; nXOriginDest, nYOriginDest, nWidthDest, nHeightDest: Integer; hdcSrc: HDC; nXOriginSrc, nYOriginSrc, nWidthSrc, nHeightSrc: Integer; dwRop: DWORD): BOOL; stdcall;
- {$EXTERNALSYM StretchBlt}
- function SetRectRgn(hrgn: HRGN; nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): BOOL; stdcall;
- {$EXTERNALSYM SetRectRgn}
- function StretchDIBits(hdc: HDC; XDest, YDest, nDestWidth, nYDestHeight, XSrc, YSrc, nSrcWidth, nSrcHeight: Integer; lpBits: LPVOID; const lpBitsInfo: BITMAPINFO; iUsage: UINT; dwRop: DWORD): Integer; stdcall;
- {$EXTERNALSYM StretchDIBits}
- function SetROP2(hdc: HDC; fnDrawMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetROP2}
- function SetStretchBltMode(hdc: HDC; iStretchMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetStretchBltMode}
- function SetSystemPaletteUse(hdc: HDC; uUsage: UINT): UINT; stdcall;
- {$EXTERNALSYM SetSystemPaletteUse}
- function SetTextCharacterExtra(hdc: HDC; nCharExtra: Integer): Integer; stdcall;
- {$EXTERNALSYM SetTextCharacterExtra}
- function SetTextColor(hdc: HDC; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM SetTextColor}
- function SetTextAlign(hdc: HDC; fMode: UINT): UINT; stdcall;
- {$EXTERNALSYM SetTextAlign}
- function SetTextJustification(hdc: HDC; nBreakExtra, nBreakCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM SetTextJustification}
- function UpdateColors(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM UpdateColors}
- //
- // image blt
- //
- type
- COLOR16 = USHORT;
- {$EXTERNALSYM COLOR16}
- PTriVertex = ^TTriVertex;
- _TRIVERTEX = record
- x: LONG;
- y: LONG;
- Red: COLOR16;
- Green: COLOR16;
- Blue: COLOR16;
- Alpha: COLOR16;
- end;
- {$EXTERNALSYM _TRIVERTEX}
- TRIVERTEX = _TRIVERTEX;
- {$EXTERNALSYM TRIVERTEX}
- LPTRIVERTEX = ^TRIVERTEX;
- {$EXTERNALSYM LPTRIVERTEX}
- TTriVertex = _TRIVERTEX;
- PGradientTriangle = ^TGradientTriangle;
- _GRADIENT_TRIANGLE = record
- Vertex1: ULONG;
- Vertex2: ULONG;
- Vertex3: ULONG;
- end;
- {$EXTERNALSYM _GRADIENT_TRIANGLE}
- GRADIENT_TRIANGLE = _GRADIENT_TRIANGLE;
- {$EXTERNALSYM GRADIENT_TRIANGLE}
- LPGRADIENT_TRIANGLE = ^GRADIENT_TRIANGLE;
- {$EXTERNALSYM LPGRADIENT_TRIANGLE}
- PGRADIENT_TRIANGLE = ^GRADIENT_TRIANGLE;
- {$EXTERNALSYM PGRADIENT_TRIANGLE}
- TGradientTriangle = _GRADIENT_TRIANGLE;
- PGradientRect = ^TGradientRect;
- _GRADIENT_RECT = record
- UpperLeft: ULONG;
- LowerRight: ULONG;
- end;
- {$EXTERNALSYM _GRADIENT_RECT}
- GRADIENT_RECT = _GRADIENT_RECT;
- {$EXTERNALSYM GRADIENT_RECT}
- LPGRADIENT_RECT = ^GRADIENT_RECT;
- {$EXTERNALSYM LPGRADIENT_RECT}
- PGRADIENT_RECT = ^GRADIENT_RECT;
- {$EXTERNALSYM PGRADIENT_RECT}
- TGradientRect = _GRADIENT_RECT;
- PBlendFunction = ^TBlendFunction;
- _BLENDFUNCTION = record
- BlendOp: BYTE;
- BlendFlags: BYTE;
- SourceConstantAlpha: BYTE;
- AlphaFormat: BYTE;
- end;
- {$EXTERNALSYM _BLENDFUNCTION}
- BLENDFUNCTION = _BLENDFUNCTION;
- {$EXTERNALSYM BLENDFUNCTION}
- LPBLENDFUNCTION = ^BLENDFUNCTION;
- {$EXTERNALSYM LPBLENDFUNCTION}
- TBlendFunction = _BLENDFUNCTION;
- //
- // currentlly defined blend function
- //
- const
- AC_SRC_OVER = $00;
- {$EXTERNALSYM AC_SRC_OVER}
- //
- // alpha format flags
- //
- AC_SRC_ALPHA = $01;
- {$EXTERNALSYM AC_SRC_ALPHA}
- function AlphaBlend(hdcDest: HDC; nXOriginDest, nYOriginDest, nWidthDest,
- nHeightDest: Integer; hdcSrc: HDC; nXOriginSrc, nYOriginSrc, nWidthSrc,
- nHeightSrc: Integer; blendFunction: BLENDFUNCTION): BOOL; stdcall;
- {$EXTERNALSYM AlphaBlend}
- function TransparentBlt(hdcSrc: HDC; nXOriginSrc, nYOriginSrc, nWidthSrc,
- nHeightSrc: Integer; hdcDest: HDC; nXOriginDest, nYOriginDest, nWidthDest,
- nHeightDest: Integer; blendFunction: BLENDFUNCTION): BOOL; stdcall;
- {$EXTERNALSYM TransparentBlt}
- //
- // gradient drawing modes
- //
- const
- GRADIENT_FILL_RECT_H = $00000000;
- {$EXTERNALSYM GRADIENT_FILL_RECT_H}
- GRADIENT_FILL_RECT_V = $00000001;
- {$EXTERNALSYM GRADIENT_FILL_RECT_V}
- GRADIENT_FILL_TRIANGLE = $00000002;
- {$EXTERNALSYM GRADIENT_FILL_TRIANGLE}
- GRADIENT_FILL_OP_FLAG = $000000ff;
- {$EXTERNALSYM GRADIENT_FILL_OP_FLAG}
- function GradientFill(hdc: HDC; pVertex: PTRIVERTEX; dwNumVertex: ULONG; pMesh: PVOID; dwNumMesh, dwMode: ULONG): BOOL; stdcall;
- {$EXTERNALSYM GradientFill}
- function PlayMetaFileRecord(hdc: HDC; lpHandleTable: LPHANDLETABLE; lpMetaRecord: LPMETARECORD; nHandles: UINT): BOOL; stdcall;
- {$EXTERNALSYM PlayMetaFileRecord}
- type
- MFENUMPROC = function (hdc: HDC; lpHTable: LPHANDLETABLE; lpMFR: LPMETARECORD; nObj: Integer; lpClientData: LPARAM): Integer; stdcall;
- {$EXTERNALSYM MFENUMPROC}
- function EnumMetaFile(hdc: HDC; hemf: HMETAFILE; lpMetaFunc: MFENUMPROC; lParam: LPARAM): BOOL; stdcall;
- {$EXTERNALSYM EnumMetaFile}
- type
- ENHMFENUMPROC = function (hdc: HDC; lpHTable: LPHANDLETABLE; lpEMFR: LPENHMETARECORD; nObj: Integer; lpData: LPARAM): Integer; stdcall;
- {$EXTERNALSYM ENHMFENUMPROC}
- // Enhanced Metafile Function Declarations
- function CloseEnhMetaFile(hdc: HDC): HENHMETAFILE; stdcall;
- {$EXTERNALSYM CloseEnhMetaFile}
- function CopyEnhMetaFileA(hemfSrc: HENHMETAFILE; lpszFile: LPCSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM CopyEnhMetaFileA}
- function CopyEnhMetaFileW(hemfSrc: HENHMETAFILE; lpszFile: LPCWSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM CopyEnhMetaFileW}
- {$IFDEF UNICODE}
- function CopyEnhMetaFile(hemfSrc: HENHMETAFILE; lpszFile: LPCWSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM CopyEnhMetaFile}
- {$ELSE}
- function CopyEnhMetaFile(hemfSrc: HENHMETAFILE; lpszFile: LPCSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM CopyEnhMetaFile}
- {$ENDIF}
- function CreateEnhMetaFileA(hdcRef: HDC; lpFileName: LPCSTR; const lpRect: RECT; lpDescription: LPCSTR): HDC; stdcall;
- {$EXTERNALSYM CreateEnhMetaFileA}
- function CreateEnhMetaFileW(hdcRef: HDC; lpFileName: LPCWSTR; const lpRect: RECT; lpDescription: LPCWSTR): HDC; stdcall;
- {$EXTERNALSYM CreateEnhMetaFileW}
- {$IFDEF UNICODE}
- function CreateEnhMetaFile(hdcRef: HDC; lpFileName: LPCWSTR; const lpRect: RECT; lpDescription: LPCWSTR): HDC; stdcall;
- {$EXTERNALSYM CreateEnhMetaFile}
- {$ELSE}
- function CreateEnhMetaFile(hdcRef: HDC; lpFileName: LPCSTR; const lpRect: RECT; lpDescription: LPCSTR): HDC; stdcall;
- {$EXTERNALSYM CreateEnhMetaFile}
- {$ENDIF}
- function DeleteEnhMetaFile(hemf: HENHMETAFILE): BOOL; stdcall;
- {$EXTERNALSYM DeleteEnhMetaFile}
- function EnumEnhMetaFile(hdc: HDC; hemf: HENHMETAFILE; lpEnhMetaFunc: ENHMFENUMPROC; lpData: LPVOID; const lpRect: RECT): BOOL; stdcall;
- {$EXTERNALSYM EnumEnhMetaFile}
- function GetEnhMetaFileA(lpszMetaFile: LPCSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM GetEnhMetaFileA}
- function GetEnhMetaFileW(lpszMetaFile: LPCWSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM GetEnhMetaFileW}
- {$IFDEF UNICODE}
- function GetEnhMetaFile(lpszMetaFile: LPCWSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM GetEnhMetaFile}
- {$ELSE}
- function GetEnhMetaFile(lpszMetaFile: LPCSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM GetEnhMetaFile}
- {$ENDIF}
- function GetEnhMetaFileBits(hemf: HENHMETAFILE; cbBuffer: UINT; lpBuffer: LPBYTE): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFileBits}
- function GetEnhMetaFileDescriptionA(hemf: HENHMETAFILE; cchBuffer: UINT; lpszDescription: LPSTR): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFileDescriptionA}
- function GetEnhMetaFileDescriptionW(hemf: HENHMETAFILE; cchBuffer: UINT; lpszDescription: LPWSTR): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFileDescriptionW}
- {$IFDEF UNICODE}
- function GetEnhMetaFileDescription(hemf: HENHMETAFILE; cchBuffer: UINT; lpszDescription: LPWSTR): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFileDescription}
- {$ELSE}
- function GetEnhMetaFileDescription(hemf: HENHMETAFILE; cchBuffer: UINT; lpszDescription: LPSTR): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFileDescription}
- {$ENDIF}
- function GetEnhMetaFileHeader(hemf: HENHMETAFILE; cbBuffer: UINT; lpemh: LPENHMETAHEADER ): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFileHeader}
- function GetEnhMetaFilePaletteEntries(hemf: HENHMETAFILE; cEntries: UINT; lppe: LPPALETTEENTRY ): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFilePaletteEntries}
- function GetEnhMetaFilePixelFormat(hemf: HENHMETAFILE; cbBuffer: UINT; var ppfd: PIXELFORMATDESCRIPTOR): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFilePixelFormat}
- function GetWinMetaFileBits(hemf: HENHMETAFILE; cbBuffer: UINT; lpbBuffer: LPBYTE; fnMapMode: Integer; hdcRef: HDC): UINT; stdcall;
- {$EXTERNALSYM GetWinMetaFileBits}
- function PlayEnhMetaFile(hdc: HDC; hemf: HENHMETAFILE; const lpRect: RECT): BOOL; stdcall;
- {$EXTERNALSYM PlayEnhMetaFile}
- function PlayEnhMetaFileRecord(hdc: HDC; lpHandleTable: LPHANDLETABLE; lpEnhMetaRecord: LPENHMETARECORD; nHandles: UINT): BOOL; stdcall;
- {$EXTERNALSYM PlayEnhMetaFileRecord}
- function SetEnhMetaFileBits(cbBuffer: UINT; lpData: LPBYTE): HENHMETAFILE; stdcall;
- {$EXTERNALSYM SetEnhMetaFileBits}
- function SetWinMetaFileBits(cbBuffer: UINT; lpbBuffer: LPBYTE; hdcRef: HDC; const lpmfp: METAFILEPICT): HENHMETAFILE; stdcall;
- {$EXTERNALSYM SetWinMetaFileBits}
- function GdiComment(hdc: HDC; cbSize: UINT; lpData: LPBYTE): BOOL; stdcall;
- {$EXTERNALSYM GdiComment}
- function GetTextMetricsA(hdc: HDC; var lptm: TEXTMETRICA): BOOL; stdcall;
- {$EXTERNALSYM GetTextMetricsA}
- function GetTextMetricsW(hdc: HDC; var lptm: TEXTMETRICW): BOOL; stdcall;
- {$EXTERNALSYM GetTextMetricsW}
- {$IFDEF UNICODE}
- function GetTextMetrics(hdc: HDC; var lptm: TEXTMETRICW): BOOL; stdcall;
- {$EXTERNALSYM GetTextMetrics}
- {$ELSE}
- function GetTextMetrics(hdc: HDC; var lptm: TEXTMETRICA): BOOL; stdcall;
- {$EXTERNALSYM GetTextMetrics}
- {$ENDIF}
- // new GDI
- type
- PDibSection = ^TDibSection;
- tagDIBSECTION = record
- dsBm: BITMAP;
- dsBmih: BITMAPINFOHEADER;
- dsBitfields: array [0..2] of DWORD;
- dshSection: HANDLE;
- dsOffset: DWORD;
- end;
- {$EXTERNALSYM tagDIBSECTION}
- DIBSECTION = tagDIBSECTION;
- {$EXTERNALSYM DIBSECTION}
- LPDIBSECTION = ^DIBSECTION;
- {$EXTERNALSYM LPDIBSECTION}
- TDibSection = DIBSECTION;
- function AngleArc(hdc: HDC; X, Y: Integer; dwRadius: DWORD; eStartAngle, eSweepAngle: FLOAT): BOOL; stdcall;
- {$EXTERNALSYM AngleArc}
- function PolyPolyline(hdc: HDC; lppt: LPPOINT; lpdwPolyPoints: LPDWORD; cCount: DWORD): BOOL; stdcall;
- {$EXTERNALSYM PolyPolyline}
- function GetWorldTransform(hdc: HDC; lpXform: LPXFORM): BOOL; stdcall;
- {$EXTERNALSYM GetWorldTransform}
- function SetWorldTransform(hdc: HDC; lpXform: LPXFORM): BOOL; stdcall;
- {$EXTERNALSYM SetWorldTransform}
- function ModifyWorldTransform(hdc: HDC; lpXform: LPXFORM; iMode: DWORD): BOOL; stdcall;
- {$EXTERNALSYM ModifyWorldTransform}
- function CombineTransform(lpxformResult, lpXform1, lpXform2: LPXFORM): BOOL; stdcall;
- {$EXTERNALSYM CombineTransform}
- function CreateDIBSection(hdc: HDC; pbmi: LPBITMAPINFO; iUsage: UINT;
- ppvBits: PPVOID; hSection: HANDLE; dwOffset: DWORD): HBITMAP; stdcall;
- {$EXTERNALSYM CreateDIBSection}
- function GetDIBColorTable(hdc: HDC; uStartIndex, cEntries: UINT; pColors: PRGBQUAD): UINT; stdcall;
- {$EXTERNALSYM GetDIBColorTable}
- function SetDIBColorTable(hdc: HDC; uStartIndex, cEntries: UINT; pColors: PRGBQUAD): UINT; stdcall;
- {$EXTERNALSYM SetDIBColorTable}
- // Flags value for COLORADJUSTMENT
- const
- CA_NEGATIVE = $0001;
- {$EXTERNALSYM CA_NEGATIVE}
- CA_LOG_FILTER = $0002;
- {$EXTERNALSYM CA_LOG_FILTER}
- // IlluminantIndex values
- ILLUMINANT_DEVICE_DEFAULT = 0;
- {$EXTERNALSYM ILLUMINANT_DEVICE_DEFAULT}
- ILLUMINANT_A = 1;
- {$EXTERNALSYM ILLUMINANT_A}
- ILLUMINANT_B = 2;
- {$EXTERNALSYM ILLUMINANT_B}
- ILLUMINANT_C = 3;
- {$EXTERNALSYM ILLUMINANT_C}
- ILLUMINANT_D50 = 4;
- {$EXTERNALSYM ILLUMINANT_D50}
- ILLUMINANT_D55 = 5;
- {$EXTERNALSYM ILLUMINANT_D55}
- ILLUMINANT_D65 = 6;
- {$EXTERNALSYM ILLUMINANT_D65}
- ILLUMINANT_D75 = 7;
- {$EXTERNALSYM ILLUMINANT_D75}
- ILLUMINANT_F2 = 8;
- {$EXTERNALSYM ILLUMINANT_F2}
- ILLUMINANT_MAX_INDEX = ILLUMINANT_F2;
- {$EXTERNALSYM ILLUMINANT_MAX_INDEX}
- ILLUMINANT_TUNGSTEN = ILLUMINANT_A;
- {$EXTERNALSYM ILLUMINANT_TUNGSTEN}
- ILLUMINANT_DAYLIGHT = ILLUMINANT_C;
- {$EXTERNALSYM ILLUMINANT_DAYLIGHT}
- ILLUMINANT_FLUORESCENT = ILLUMINANT_F2;
- {$EXTERNALSYM ILLUMINANT_FLUORESCENT}
- ILLUMINANT_NTSC = ILLUMINANT_C;
- {$EXTERNALSYM ILLUMINANT_NTSC}
- // Min and max for RedGamma, GreenGamma, BlueGamma
- RGB_GAMMA_MIN = WORD(02500);
- {$EXTERNALSYM RGB_GAMMA_MIN}
- RGB_GAMMA_MAX = WORD(65000);
- {$EXTERNALSYM RGB_GAMMA_MAX}
- // Min and max for ReferenceBlack and ReferenceWhite
- REFERENCE_WHITE_MIN = WORD(6000);
- {$EXTERNALSYM REFERENCE_WHITE_MIN}
- REFERENCE_WHITE_MAX = WORD(10000);
- {$EXTERNALSYM REFERENCE_WHITE_MAX}
- REFERENCE_BLACK_MIN = WORD(0);
- {$EXTERNALSYM REFERENCE_BLACK_MIN}
- REFERENCE_BLACK_MAX = WORD(4000);
- {$EXTERNALSYM REFERENCE_BLACK_MAX}
- // Min and max for Contrast, Brightness, Colorfulness, RedGreenTint
- COLOR_ADJ_MIN = SHORT(-100);
- {$EXTERNALSYM COLOR_ADJ_MIN}
- COLOR_ADJ_MAX = SHORT(100);
- {$EXTERNALSYM COLOR_ADJ_MAX}
- type
- PColorAdjustment = ^TColorAdjustment;
- tagCOLORADJUSTMENT = record
- caSize: WORD;
- caFlags: WORD;
- caIlluminantIndex: WORD;
- caRedGamma: WORD;
- caGreenGamma: WORD;
- caBlueGamma: WORD;
- caReferenceBlack: WORD;
- caReferenceWhite: WORD;
- caContrast: SHORT;
- caBrightness: SHORT;
- caColorfulness: SHORT;
- caRedGreenTint: SHORT;
- end;
- {$EXTERNALSYM tagCOLORADJUSTMENT}
- COLORADJUSTMENT = tagCOLORADJUSTMENT;
- {$EXTERNALSYM COLORADJUSTMENT}
- LPCOLORADJUSTMENT = ^COLORADJUSTMENT;
- {$EXTERNALSYM LPCOLORADJUSTMENT}
- TColorAdjustment = COLORADJUSTMENT;
- function SetColorAdjustment(hdc: HDC; lpca: LPCOLORADJUSTMENT): BOOL; stdcall;
- {$EXTERNALSYM SetColorAdjustment}
- function GetColorAdjustment(hdc: HDC; lpca: LPCOLORADJUSTMENT): BOOL; stdcall;
- {$EXTERNALSYM GetColorAdjustment}
- function CreateHalftonePalette(hdc: HDC): HPALETTE; stdcall;
- {$EXTERNALSYM CreateHalftonePalette}
- type
- ABORTPROC = function (hdc: HDC; iError: Integer): BOOL; stdcall;
- {$EXTERNALSYM ABORTPROC}
- PDocInfoA = ^TDocInfoA;
- _DOCINFOA = record
- cbSize: Integer;
- lpszDocName: LPCSTR;
- lpszOutput: LPCSTR;
- {$IFDEF WINVER_0400_GREATER}
- lpszDatatype: LPCSTR;
- fwType: DWORD;
- {$ENDIF}
- end;
- {$EXTERNALSYM _DOCINFOA}
- DOCINFOA = _DOCINFOA;
- {$EXTERNALSYM DOCINFOA}
- LPDOCINFOA = ^DOCINFOA;
- {$EXTERNALSYM LPDOCINFOA}
- TDocInfoA = _DOCINFOA;
- PDocInfoW = ^TDocInfoW;
- _DOCINFOW = record
- cbSize: Integer;
- lpszDocName: LPCWSTR;
- lpszOutput: LPCWSTR;
- {$IFDEF WINVER_0400_GREATER}
- lpszDatatype: LPCWSTR;
- fwType: DWORD;
- {$ENDIF}
- end;
- {$EXTERNALSYM _DOCINFOW}
- DOCINFOW = _DOCINFOW;
- {$EXTERNALSYM DOCINFOW}
- LPDOCINFOW = ^DOCINFOW;
- {$EXTERNALSYM LPDOCINFOW}
- TDocInfoW = _DOCINFOW;
- {$IFDEF UNICODE}
- DOCINFO = DOCINFOW;
- {$EXTERNALSYM DOCINFO}
- LPDOCINFO = LPDOCINFOW;
- {$EXTERNALSYM LPDOCINFO}
- TDocInfo = TDocInfoW;
- PDocInfo = PDocInfoW;
- {$ELSE}
- DOCINFO = DOCINFOA;
- {$EXTERNALSYM DOCINFO}
- LPDOCINFO = LPDOCINFOA;
- {$EXTERNALSYM LPDOCINFO}
- TDocInfo = TDocInfoA;
- PDocInfo = PDocInfoA;
- {$ENDIF}
- const
- DI_APPBANDING = $00000001;
- {$EXTERNALSYM DI_APPBANDING}
- DI_ROPS_READ_DESTINATION = $00000002;
- {$EXTERNALSYM DI_ROPS_READ_DESTINATION}
- function StartDocA(hdc: HDC; const lpdi: DOCINFOA): Integer; stdcall;
- {$EXTERNALSYM StartDocA}
- function StartDocW(hdc: HDC; const lpdi: DOCINFOW): Integer; stdcall;
- {$EXTERNALSYM StartDocW}
- {$IFDEF UNICODE}
- function StartDoc(hdc: HDC; const lpdi: DOCINFOW): Integer; stdcall;
- {$EXTERNALSYM StartDoc}
- {$ELSE}
- function StartDoc(hdc: HDC; const lpdi: DOCINFOA): Integer; stdcall;
- {$EXTERNALSYM StartDoc}
- {$ENDIF}
- function EndDoc(dc: HDC): Integer; stdcall;
- {$EXTERNALSYM EndDoc}
- function StartPage(dc: HDC): Integer; stdcall;
- {$EXTERNALSYM StartPage}
- function EndPage(dc: HDC): Integer; stdcall;
- {$EXTERNALSYM EndPage}
- function AbortDoc(dc: HDC): Integer; stdcall;
- {$EXTERNALSYM AbortDoc}
- function SetAbortProc(dc: HDC; lpAbortProc: ABORTPROC): Integer; stdcall;
- {$EXTERNALSYM SetAbortProc}
- function AbortPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM AbortPath}
- function ArcTo(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect, nXRadial1, nYRadial1, nXRadial2, nYRadial2: Integer): BOOL; stdcall;
- {$EXTERNALSYM ArcTo}
- function BeginPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM BeginPath}
- function CloseFigure(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM CloseFigure}
- function EndPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM EndPath}
- function FillPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM FillPath}
- function FlattenPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM FlattenPath}
- function GetPath(hdc: HDC; lpPoints: LPPOINT; lpTypes: LPBYTE; nSize: Integer): Integer; stdcall;
- {$EXTERNALSYM GetPath}
- function PathToRegion(hdc: HDC): HRGN; stdcall;
- {$EXTERNALSYM PathToRegion}
- function PolyDraw(hdc: HDC; lppt: LPPOINT; lpbTypes: LPBYTE; cCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM PolyDraw}
- function SelectClipPath(hdc: HDC; iMode: Integer): BOOL; stdcall;
- {$EXTERNALSYM SelectClipPath}
- function SetArcDirection(hdc: HDC; ArcDirection: Integer): Integer; stdcall;
- {$EXTERNALSYM SetArcDirection}
- function SetMiterLimit(hdc: HDC; eNewLimit: FLOAT; peOldLimit: PFLOAT): BOOL; stdcall;
- {$EXTERNALSYM SetMiterLimit}
- function StrokeAndFillPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM StrokeAndFillPath}
- function StrokePath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM StrokePath}
- function WidenPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM WidenPath}
- function ExtCreatePen(dwPenStyle, dwWidth: DWORD; const lplb: LOGBRUSH; dwStyleCount: DWORD; lpStyle: DWORD): HPEN; stdcall;
- {$EXTERNALSYM ExtCreatePen}
- function GetMiterLimit(hdc: HDC; var peLimit: FLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetMiterLimit}
- function GetArcDirection(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetArcDirection}
- function GetObjectA(hgdiobj: HGDIOBJ; cbBuffer: Integer; lpvObject: LPVOID): Integer; stdcall;
- {$EXTERNALSYM GetObjectA}
- function GetObjectW(hgdiobj: HGDIOBJ; cbBuffer: Integer; lpvObject: LPVOID): Integer; stdcall;
- {$EXTERNALSYM GetObjectW}
- {$IFDEF UNICODE}
- function GetObject(hgdiobj: HGDIOBJ; cbBuffer: Integer; lpvObject: LPVOID): Integer; stdcall;
- {$EXTERNALSYM GetObject}
- {$ELSE}
- function GetObject(hgdiobj: HGDIOBJ; cbBuffer: Integer; lpvObject: LPVOID): Integer; stdcall;
- {$EXTERNALSYM GetObject}
- {$ENDIF}
- function MoveToEx(hdc: HDC; X, Y: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM MoveToEx}
- function TextOutA(hdc: HDC; nXStart, nYStart: Integer; lpString: LPCSTR; cbString: Integer): BOOL; stdcall;
- {$EXTERNALSYM TextOutA}
- function TextOutW(hdc: HDC; nXStart, nYStart: Integer; lpString: LPCWSTR; cbString: Integer): BOOL; stdcall;
- {$EXTERNALSYM TextOutW}
- {$IFDEF UNICODE}
- function TextOut(hdc: HDC; nXStart, nYStart: Integer; lpString: LPCWSTR; cbString: Integer): BOOL; stdcall;
- {$EXTERNALSYM TextOut}
- {$ELSE}
- function TextOut(hdc: HDC; nXStart, nYStart: Integer; lpString: LPCSTR; cbString: Integer): BOOL; stdcall;
- {$EXTERNALSYM TextOut}
- {$ENDIF}
- function ExtTextOutA(hdc: HDC; X, Y: Integer; fuOptions: UINT; lprc: LPRECT; lpString: LPCSTR; cbCount: UINT; lpDx: LPINT): BOOL; stdcall;
- {$EXTERNALSYM ExtTextOutA}
- function ExtTextOutW(hdc: HDC; X, Y: Integer; fuOptions: UINT; lprc: LPRECT; lpString: LPCWSTR; cbCount: UINT; lpDx: LPINT): BOOL; stdcall;
- {$EXTERNALSYM ExtTextOutW}
- {$IFDEF UNICODE}
- function ExtTextOut(hdc: HDC; X, Y: Integer; fuOptions: UINT; lprc: LPRECT; lpString: LPCWSTR; cbCount: UINT; lpDx: LPINT): BOOL; stdcall;
- {$EXTERNALSYM ExtTextOut}
- {$ELSE}
- function ExtTextOut(hdc: HDC; X, Y: Integer; fuOptions: UINT; lprc: LPRECT; lpString: LPCSTR; cbCount: UINT; lpDx: LPINT): BOOL; stdcall;
- {$EXTERNALSYM ExtTextOut}
- {$ENDIF}
- function PolyTextOutA(hdc: HDC; pptxt: LPPOLYTEXTA; cStrings: Integer): BOOL; stdcall;
- {$EXTERNALSYM PolyTextOutA}
- function PolyTextOutW(hdc: HDC; pptxt: LPPOLYTEXTW; cStrings: Integer): BOOL; stdcall;
- {$EXTERNALSYM PolyTextOutW}
- {$IFDEF UNICODE}
- function PolyTextOut(hdc: HDC; pptxt: LPPOLYTEXTW; cStrings: Integer): BOOL; stdcall;
- {$EXTERNALSYM PolyTextOut}
- {$ELSE}
- function PolyTextOut(hdc: HDC; pptxt: LPPOLYTEXTA; cStrings: Integer): BOOL; stdcall;
- {$EXTERNALSYM PolyTextOut}
- {$ENDIF}
- function CreatePolygonRgn(lppt: LPPOINT; cPoints, fnPolyFillMode: Integer): HRGN; stdcall;
- {$EXTERNALSYM CreatePolygonRgn}
- function DPtoLP(hdc: HDC; lpPoints: LPPOINT; nCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM DPtoLP}
- function LPtoDP(hdc: HDC; lpPoints: LPPOINT; nCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM LPtoDP}
- function Polygon(hdc: HDC; lpPoints: LPPOINT; nCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM Polygon}
- function Polyline(hdc: HDC; lppt: LPPOINT; nCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM Polyline}
- function PolyBezier(hdc: HDC; lppt: LPPOINT; cPoints: DWORD): BOOL; stdcall;
- {$EXTERNALSYM PolyBezier}
- function PolyBezierTo(hdc: HDC; lppt: LPPOINT; cCount: DWORD): BOOL; stdcall;
- {$EXTERNALSYM PolyBezierTo}
- function PolylineTo(hdc: HDC; lppt: LPPOINT; cCount: DWORD): BOOL; stdcall;
- {$EXTERNALSYM PolylineTo}
- function SetViewportExtEx(hdc: HDC; nXExtend, nYExtend: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM SetViewportExtEx}
- function SetViewportOrgEx(hdc: HDC; X, Y: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM SetViewportOrgEx}
- function SetWindowExtEx(hdc: HDC; nXExtend, nYExtend: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM SetWindowExtEx}
- function SetWindowOrgEx(hdc: HDC; X, Y: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM SetWindowOrgEx}
- function OffsetViewportOrgEx(hdc: HDC; nXOffset, nYOffset: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM OffsetViewportOrgEx}
- function OffsetWindowOrgEx(hdc: HDC; nXOffset, nYOffset: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM OffsetWindowOrgEx}
- function ScaleViewportExtEx(hdc: HDC; Xnum, Xdenom, Ynum, Ydenom: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM ScaleViewportExtEx}
- function ScaleWindowExtEx(hdc: HDC; Xnum, Xdenom, Ynum, Ydenom: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM ScaleWindowExtEx}
- function SetBitmapDimensionEx(hBitmap: HBITMAP; nWidth, nHeight: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM SetBitmapDimensionEx}
- function SetBrushOrgEx(hdc: HDC; nXOrg, nYOrg: Integer; lppt: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM SetBrushOrgEx}
- function GetTextFaceA(hdc: HDC; nCount: Integer; lpFaceName: LPSTR): Integer; stdcall;
- {$EXTERNALSYM GetTextFaceA}
- function GetTextFaceW(hdc: HDC; nCount: Integer; lpFaceName: LPWSTR): Integer; stdcall;
- {$EXTERNALSYM GetTextFaceW}
- {$IFDEF UNICODE}
- function GetTextFace(hdc: HDC; nCount: Integer; lpFaceName: LPWSTR): Integer; stdcall;
- {$EXTERNALSYM GetTextFace}
- {$ELSE}
- function GetTextFace(hdc: HDC; nCount: Integer; lpFaceName: LPSTR): Integer; stdcall;
- {$EXTERNALSYM GetTextFace}
- {$ENDIF}
- const
- FONTMAPPER_MAX = 10;
- {$EXTERNALSYM FONTMAPPER_MAX}
- type
- PKerningPair = ^TKerningPair;
- tagKERNINGPAIR = record
- wFirst: WORD;
- wSecond: WORD;
- iKernAmount: Integer;
- end;
- {$EXTERNALSYM tagKERNINGPAIR}
- KERNINGPAIR = tagKERNINGPAIR;
- {$EXTERNALSYM KERNINGPAIR}
- LPKERNINGPAIR = ^KERNINGPAIR;
- {$EXTERNALSYM LPKERNINGPAIR}
- TKerningPair = KERNINGPAIR;
- function GetKerningPairsA(hDc: HDC; nNumPairs: DWORD; lpkrnpair: LPKERNINGPAIR): DWORD; stdcall;
- {$EXTERNALSYM GetKerningPairsA}
- function GetKerningPairsW(hDc: HDC; nNumPairs: DWORD; lpkrnpair: LPKERNINGPAIR): DWORD; stdcall;
- {$EXTERNALSYM GetKerningPairsW}
- {$IFDEF UNICODE}
- function GetKerningPairs(hDc: HDC; nNumPairs: DWORD; lpkrnpair: LPKERNINGPAIR): DWORD; stdcall;
- {$EXTERNALSYM GetKerningPairs}
- {$ELSE}
- function GetKerningPairs(hDc: HDC; nNumPairs: DWORD; lpkrnpair: LPKERNINGPAIR): DWORD; stdcall;
- {$EXTERNALSYM GetKerningPairs}
- {$ENDIF}
- function GetDCOrgEx(hdc: HDC; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM GetDCOrgEx}
- function FixBrushOrgEx(hDc: HDC; I1, I2: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM FixBrushOrgEx}
- function UnrealizeObject(hgdiobj: HGDIOBJ): BOOL; stdcall;
- {$EXTERNALSYM UnrealizeObject}
- function GdiFlush: BOOL; stdcall;
- {$EXTERNALSYM GdiFlush}
- function GdiSetBatchLimit(dwLimit: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GdiSetBatchLimit}
- function GdiGetBatchLimit: DWORD; stdcall;
- {$EXTERNALSYM GdiGetBatchLimit}
- const
- ICM_OFF = 1;
- {$EXTERNALSYM ICM_OFF}
- ICM_ON = 2;
- {$EXTERNALSYM ICM_ON}
- ICM_QUERY = 3;
- {$EXTERNALSYM ICM_QUERY}
- ICM_DONE_OUTSIDEDC = 4;
- {$EXTERNALSYM ICM_DONE_OUTSIDEDC}
- type
- ICMENUMPROCA = function (lpszFileName: LPSTR; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM ICMENUMPROCA}
- ICMENUMPROCW = function (lpszFileName: LPWSTR; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM ICMENUMPROCW}
- {$IFDEF UNICODE}
- ICMENUMPROC = function (lpszFileName: LPWSTR; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM ICMENUMPROC}
- {$ELSE}
- ICMENUMPROC = function (lpszFileName: LPSTR; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM ICMENUMPROC}
- {$ENDIF}
- function SetICMMode(hDc: HDC; iEnableICM: Integer): Integer; stdcall;
- {$EXTERNALSYM SetICMMode}
- function CheckColorsInGamut(hDc: HDC; lpRGBTriples, lpBuffer: LPVOID; nCount: DWORD): BOOL; stdcall;
- {$EXTERNALSYM CheckColorsInGamut}
- function GetColorSpace(hDc: HDC): HCOLORSPACE; stdcall;
- {$EXTERNALSYM GetColorSpace}
- function GetLogColorSpaceA(hColorSpace: HCOLORSPACE; lpBuffer: LPLOGCOLORSPACEA; nSize: DWORD): BOOL; stdcall;
- {$EXTERNALSYM GetLogColorSpaceA}
- function GetLogColorSpaceW(hColorSpace: HCOLORSPACE; lpBuffer: LPLOGCOLORSPACEW; nSize: DWORD): BOOL; stdcall;
- {$EXTERNALSYM GetLogColorSpaceW}
- {$IFDEF UNICODE}
- function GetLogColorSpace(hColorSpace: HCOLORSPACE; lpBuffer: LPLOGCOLORSPACEW; nSize: DWORD): BOOL; stdcall;
- {$EXTERNALSYM GetLogColorSpace}
- {$ELSE}
- function GetLogColorSpace(hColorSpace: HCOLORSPACE; lpBuffer: LPLOGCOLORSPACEA; nSize: DWORD): BOOL; stdcall;
- {$EXTERNALSYM GetLogColorSpace}
- {$ENDIF}
- function CreateColorSpaceA(lpLogColorSpace: LPLOGCOLORSPACEA): HCOLORSPACE; stdcall;
- {$EXTERNALSYM CreateColorSpaceA}
- function CreateColorSpaceW(lpLogColorSpace: LPLOGCOLORSPACEW): HCOLORSPACE; stdcall;
- {$EXTERNALSYM CreateColorSpaceW}
- {$IFDEF UNICODE}
- function CreateColorSpace(lpLogColorSpace: LPLOGCOLORSPACEW): HCOLORSPACE; stdcall;
- {$EXTERNALSYM CreateColorSpace}
- {$ELSE}
- function CreateColorSpace(lpLogColorSpace: LPLOGCOLORSPACEA): HCOLORSPACE; stdcall;
- {$EXTERNALSYM CreateColorSpace}
- {$ENDIF}
- function SetColorSpace(hDc: HDC; hColorSpace: HCOLORSPACE): HCOLORSPACE; stdcall;
- {$EXTERNALSYM SetColorSpace}
- function DeleteColorSpace(hColorSpace: HCOLORSPACE): BOOL; stdcall;
- {$EXTERNALSYM DeleteColorSpace}
- function GetICMProfileA(hDc: HDC; lpcbName: LPDWORD; lpszFilename: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM GetICMProfileA}
- function GetICMProfileW(hDc: HDC; lpcbName: LPDWORD; lpszFilename: LPWSTR): BOOL; stdcall;
- {$EXTERNALSYM GetICMProfileW}
- {$IFDEF UNICODE}
- function GetICMProfile(hDc: HDC; lpcbName: LPDWORD; lpszFilename: LPWSTR): BOOL; stdcall;
- {$EXTERNALSYM GetICMProfile}
- {$ELSE}
- function GetICMProfile(hDc: HDC; lpcbName: LPDWORD; lpszFilename: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM GetICMProfile}
- {$ENDIF}
- function SetICMProfileA(hDc: HDC; lpFileName: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM SetICMProfileA}
- function SetICMProfileW(hDc: HDC; lpFileName: LPWSTR): BOOL; stdcall;
- {$EXTERNALSYM SetICMProfileW}
- {$IFDEF UNICODE}
- function SetICMProfile(hDc: HDC; lpFileName: LPWSTR): BOOL; stdcall;
- {$EXTERNALSYM SetICMProfile}
- {$ELSE}
- function SetICMProfile(hDc: HDC; lpFileName: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM SetICMProfile}
- {$ENDIF}
- function GetDeviceGammaRamp(hDc: HDC; lpRamp: LPVOID): BOOL; stdcall;
- {$EXTERNALSYM GetDeviceGammaRamp}
- function SetDeviceGammaRamp(hDc: HDC; lpRamp: LPVOID): BOOL; stdcall;
- {$EXTERNALSYM SetDeviceGammaRamp}
- function ColorMatchToTarget(hDc, hdcTarget: HDC; uiAction: DWORD): BOOL; stdcall;
- {$EXTERNALSYM ColorMatchToTarget}
- function EnumICMProfilesA(hDc: HDC; lpEnumProc: ICMENUMPROCA; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumICMProfilesA}
- function EnumICMProfilesW(hDc: HDC; lpEnumProc: ICMENUMPROCW; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumICMProfilesW}
- {$IFDEF UNICODE}
- function EnumICMProfiles(hDc: HDC; lpEnumProc: ICMENUMPROCW; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumICMProfiles}
- {$ELSE}
- function EnumICMProfiles(hDc: HDC; lpEnumProc: ICMENUMPROCA; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumICMProfiles}
- {$ENDIF}
- function UpdateICMRegKeyA(dwReserved: DWORD; lpszCMID, lpszFileName: LPSTR; nCommand: UINT): BOOL; stdcall;
- {$EXTERNALSYM UpdateICMRegKeyA}
- function UpdateICMRegKeyW(dwReserved: DWORD; lpszCMID, lpszFileName: LPWSTR; nCommand: UINT): BOOL; stdcall;
- {$EXTERNALSYM UpdateICMRegKeyW}
- {$IFDEF UNICODE}
- function UpdateICMRegKey(dwReserved: DWORD; lpszCMID, lpszFileName: LPWSTR; nCommand: UINT): BOOL; stdcall;
- {$EXTERNALSYM UpdateICMRegKey}
- {$ELSE}
- function UpdateICMRegKey(dwReserved: DWORD; lpszCMID, lpszFileName: LPSTR; nCommand: UINT): BOOL; stdcall;
- {$EXTERNALSYM UpdateICMRegKey}
- {$ENDIF}
- function ColorCorrectPalette(hDc: HDC; hColorPalette: HPALETTE; dwFirstEntry, dwNumOfEntries: DWORD): BOOL; stdcall;
- {$EXTERNALSYM ColorCorrectPalette}
- // Enhanced metafile constants.
- const
- ENHMETA_SIGNATURE = $464D4520;
- {$EXTERNALSYM ENHMETA_SIGNATURE}
- // Stock object flag used in the object handle index in the enhanced
- // metafile records.
- // E.g. The object handle index (META_STOCK_OBJECT | BLACK_BRUSH)
- // represents the stock object BLACK_BRUSH.
- ENHMETA_STOCK_OBJECT = DWORD($80000000);
- {$EXTERNALSYM ENHMETA_STOCK_OBJECT}
- // Enhanced metafile record types.
- EMR_HEADER = 1;
- {$EXTERNALSYM EMR_HEADER}
- EMR_POLYBEZIER = 2;
- {$EXTERNALSYM EMR_POLYBEZIER}
- EMR_POLYGON = 3;
- {$EXTERNALSYM EMR_POLYGON}
- EMR_POLYLINE = 4;
- {$EXTERNALSYM EMR_POLYLINE}
- EMR_POLYBEZIERTO = 5;
- {$EXTERNALSYM EMR_POLYBEZIERTO}
- EMR_POLYLINETO = 6;
- {$EXTERNALSYM EMR_POLYLINETO}
- EMR_POLYPOLYLINE = 7;
- {$EXTERNALSYM EMR_POLYPOLYLINE}
- EMR_POLYPOLYGON = 8;
- {$EXTERNALSYM EMR_POLYPOLYGON}
- EMR_SETWINDOWEXTEX = 9;
- {$EXTERNALSYM EMR_SETWINDOWEXTEX}
- EMR_SETWINDOWORGEX = 10;
- {$EXTERNALSYM EMR_SETWINDOWORGEX}
- EMR_SETVIEWPORTEXTEX = 11;
- {$EXTERNALSYM EMR_SETVIEWPORTEXTEX}
- EMR_SETVIEWPORTORGEX = 12;
- {$EXTERNALSYM EMR_SETVIEWPORTORGEX}
- EMR_SETBRUSHORGEX = 13;
- {$EXTERNALSYM EMR_SETBRUSHORGEX}
- EMR_EOF = 14;
- {$EXTERNALSYM EMR_EOF}
- EMR_SETPIXELV = 15;
- {$EXTERNALSYM EMR_SETPIXELV}
- EMR_SETMAPPERFLAGS = 16;
- {$EXTERNALSYM EMR_SETMAPPERFLAGS}
- EMR_SETMAPMODE = 17;
- {$EXTERNALSYM EMR_SETMAPMODE}
- EMR_SETBKMODE = 18;
- {$EXTERNALSYM EMR_SETBKMODE}
- EMR_SETPOLYFILLMODE = 19;
- {$EXTERNALSYM EMR_SETPOLYFILLMODE}
- EMR_SETROP2 = 20;
- {$EXTERNALSYM EMR_SETROP2}
- EMR_SETSTRETCHBLTMODE = 21;
- {$EXTERNALSYM EMR_SETSTRETCHBLTMODE}
- EMR_SETTEXTALIGN = 22;
- {$EXTERNALSYM EMR_SETTEXTALIGN}
- EMR_SETCOLORADJUSTMENT = 23;
- {$EXTERNALSYM EMR_SETCOLORADJUSTMENT}
- EMR_SETTEXTCOLOR = 24;
- {$EXTERNALSYM EMR_SETTEXTCOLOR}
- EMR_SETBKCOLOR = 25;
- {$EXTERNALSYM EMR_SETBKCOLOR}
- EMR_OFFSETCLIPRGN = 26;
- {$EXTERNALSYM EMR_OFFSETCLIPRGN}
- EMR_MOVETOEX = 27;
- {$EXTERNALSYM EMR_MOVETOEX}
- EMR_SETMETARGN = 28;
- {$EXTERNALSYM EMR_SETMETARGN}
- EMR_EXCLUDECLIPRECT = 29;
- {$EXTERNALSYM EMR_EXCLUDECLIPRECT}
- EMR_INTERSECTCLIPRECT = 30;
- {$EXTERNALSYM EMR_INTERSECTCLIPRECT}
- EMR_SCALEVIEWPORTEXTEX = 31;
- {$EXTERNALSYM EMR_SCALEVIEWPORTEXTEX}
- EMR_SCALEWINDOWEXTEX = 32;
- {$EXTERNALSYM EMR_SCALEWINDOWEXTEX}
- EMR_SAVEDC = 33;
- {$EXTERNALSYM EMR_SAVEDC}
- EMR_RESTOREDC = 34;
- {$EXTERNALSYM EMR_RESTOREDC}
- EMR_SETWORLDTRANSFORM = 35;
- {$EXTERNALSYM EMR_SETWORLDTRANSFORM}
- EMR_MODIFYWORLDTRANSFORM = 36;
- {$EXTERNALSYM EMR_MODIFYWORLDTRANSFORM}
- EMR_SELECTOBJECT = 37;
- {$EXTERNALSYM EMR_SELECTOBJECT}
- EMR_CREATEPEN = 38;
- {$EXTERNALSYM EMR_CREATEPEN}
- EMR_CREATEBRUSHINDIRECT = 39;
- {$EXTERNALSYM EMR_CREATEBRUSHINDIRECT}
- EMR_DELETEOBJECT = 40;
- {$EXTERNALSYM EMR_DELETEOBJECT}
- EMR_ANGLEARC = 41;
- {$EXTERNALSYM EMR_ANGLEARC}
- EMR_ELLIPSE = 42;
- {$EXTERNALSYM EMR_ELLIPSE}
- EMR_RECTANGLE = 43;
- {$EXTERNALSYM EMR_RECTANGLE}
- EMR_ROUNDRECT = 44;
- {$EXTERNALSYM EMR_ROUNDRECT}
- EMR_ARC = 45;
- {$EXTERNALSYM EMR_ARC}
- EMR_CHORD = 46;
- {$EXTERNALSYM EMR_CHORD}
- EMR_PIE = 47;
- {$EXTERNALSYM EMR_PIE}
- EMR_SELECTPALETTE = 48;
- {$EXTERNALSYM EMR_SELECTPALETTE}
- EMR_CREATEPALETTE = 49;
- {$EXTERNALSYM EMR_CREATEPALETTE}
- EMR_SETPALETTEENTRIES = 50;
- {$EXTERNALSYM EMR_SETPALETTEENTRIES}
- EMR_RESIZEPALETTE = 51;
- {$EXTERNALSYM EMR_RESIZEPALETTE}
- EMR_REALIZEPALETTE = 52;
- {$EXTERNALSYM EMR_REALIZEPALETTE}
- EMR_EXTFLOODFILL = 53;
- {$EXTERNALSYM EMR_EXTFLOODFILL}
- EMR_LINETO = 54;
- {$EXTERNALSYM EMR_LINETO}
- EMR_ARCTO = 55;
- {$EXTERNALSYM EMR_ARCTO}
- EMR_POLYDRAW = 56;
- {$EXTERNALSYM EMR_POLYDRAW}
- EMR_SETARCDIRECTION = 57;
- {$EXTERNALSYM EMR_SETARCDIRECTION}
- EMR_SETMITERLIMIT = 58;
- {$EXTERNALSYM EMR_SETMITERLIMIT}
- EMR_BEGINPATH = 59;
- {$EXTERNALSYM EMR_BEGINPATH}
- EMR_ENDPATH = 60;
- {$EXTERNALSYM EMR_ENDPATH}
- EMR_CLOSEFIGURE = 61;
- {$EXTERNALSYM EMR_CLOSEFIGURE}
- EMR_FILLPATH = 62;
- {$EXTERNALSYM EMR_FILLPATH}
- EMR_STROKEANDFILLPATH = 63;
- {$EXTERNALSYM EMR_STROKEANDFILLPATH}
- EMR_STROKEPATH = 64;
- {$EXTERNALSYM EMR_STROKEPATH}
- EMR_FLATTENPATH = 65;
- {$EXTERNALSYM EMR_FLATTENPATH}
- EMR_WIDENPATH = 66;
- {$EXTERNALSYM EMR_WIDENPATH}
- EMR_SELECTCLIPPATH = 67;
- {$EXTERNALSYM EMR_SELECTCLIPPATH}
- EMR_ABORTPATH = 68;
- {$EXTERNALSYM EMR_ABORTPATH}
- EMR_GDICOMMENT = 70;
- {$EXTERNALSYM EMR_GDICOMMENT}
- EMR_FILLRGN = 71;
- {$EXTERNALSYM EMR_FILLRGN}
- EMR_FRAMERGN = 72;
- {$EXTERNALSYM EMR_FRAMERGN}
- EMR_INVERTRGN = 73;
- {$EXTERNALSYM EMR_INVERTRGN}
- EMR_PAINTRGN = 74;
- {$EXTERNALSYM EMR_PAINTRGN}
- EMR_EXTSELECTCLIPRGN = 75;
- {$EXTERNALSYM EMR_EXTSELECTCLIPRGN}
- EMR_BITBLT = 76;
- {$EXTERNALSYM EMR_BITBLT}
- EMR_STRETCHBLT = 77;
- {$EXTERNALSYM EMR_STRETCHBLT}
- EMR_MASKBLT = 78;
- {$EXTERNALSYM EMR_MASKBLT}
- EMR_PLGBLT = 79;
- {$EXTERNALSYM EMR_PLGBLT}
- EMR_SETDIBITSTODEVICE = 80;
- {$EXTERNALSYM EMR_SETDIBITSTODEVICE}
- EMR_STRETCHDIBITS = 81;
- {$EXTERNALSYM EMR_STRETCHDIBITS}
- EMR_EXTCREATEFONTINDIRECTW = 82;
- {$EXTERNALSYM EMR_EXTCREATEFONTINDIRECTW}
- EMR_EXTTEXTOUTA = 83;
- {$EXTERNALSYM EMR_EXTTEXTOUTA}
- EMR_EXTTEXTOUTW = 84;
- {$EXTERNALSYM EMR_EXTTEXTOUTW}
- EMR_POLYBEZIER16 = 85;
- {$EXTERNALSYM EMR_POLYBEZIER16}
- EMR_POLYGON16 = 86;
- {$EXTERNALSYM EMR_POLYGON16}
- EMR_POLYLINE16 = 87;
- {$EXTERNALSYM EMR_POLYLINE16}
- EMR_POLYBEZIERTO16 = 88;
- {$EXTERNALSYM EMR_POLYBEZIERTO16}
- EMR_POLYLINETO16 = 89;
- {$EXTERNALSYM EMR_POLYLINETO16}
- EMR_POLYPOLYLINE16 = 90;
- {$EXTERNALSYM EMR_POLYPOLYLINE16}
- EMR_POLYPOLYGON16 = 91;
- {$EXTERNALSYM EMR_POLYPOLYGON16}
- EMR_POLYDRAW16 = 92;
- {$EXTERNALSYM EMR_POLYDRAW16}
- EMR_CREATEMONOBRUSH = 93;
- {$EXTERNALSYM EMR_CREATEMONOBRUSH}
- EMR_CREATEDIBPATTERNBRUSHPT = 94;
- {$EXTERNALSYM EMR_CREATEDIBPATTERNBRUSHPT}
- EMR_EXTCREATEPEN = 95;
- {$EXTERNALSYM EMR_EXTCREATEPEN}
- EMR_POLYTEXTOUTA = 96;
- {$EXTERNALSYM EMR_POLYTEXTOUTA}
- EMR_POLYTEXTOUTW = 97;
- {$EXTERNALSYM EMR_POLYTEXTOUTW}
- EMR_SETICMMODE = 98;
- {$EXTERNALSYM EMR_SETICMMODE}
- EMR_CREATECOLORSPACE = 99;
- {$EXTERNALSYM EMR_CREATECOLORSPACE}
- EMR_SETCOLORSPACE = 100;
- {$EXTERNALSYM EMR_SETCOLORSPACE}
- EMR_DELETECOLORSPACE = 101;
- {$EXTERNALSYM EMR_DELETECOLORSPACE}
- EMR_GLSRECORD = 102;
- {$EXTERNALSYM EMR_GLSRECORD}
- EMR_GLSBOUNDEDRECORD = 103;
- {$EXTERNALSYM EMR_GLSBOUNDEDRECORD}
- EMR_PIXELFORMAT = 104;
- {$EXTERNALSYM EMR_PIXELFORMAT}
- EMR_RESERVED_105 = 105;
- {$EXTERNALSYM EMR_RESERVED_105}
- EMR_RESERVED_106 = 106;
- {$EXTERNALSYM EMR_RESERVED_106}
- EMR_RESERVED_107 = 107;
- {$EXTERNALSYM EMR_RESERVED_107}
- EMR_RESERVED_108 = 108;
- {$EXTERNALSYM EMR_RESERVED_108}
- EMR_RESERVED_109 = 109;
- {$EXTERNALSYM EMR_RESERVED_109}
- EMR_RESERVED_110 = 110;
- {$EXTERNALSYM EMR_RESERVED_110}
- EMR_COLORCORRECTPALETTE = 111;
- {$EXTERNALSYM EMR_COLORCORRECTPALETTE}
- EMR_SETICMPROFILEA = 112;
- {$EXTERNALSYM EMR_SETICMPROFILEA}
- EMR_SETICMPROFILEW = 113;
- {$EXTERNALSYM EMR_SETICMPROFILEW}
- EMR_ALPHABLEND = 114;
- {$EXTERNALSYM EMR_ALPHABLEND}
- EMR_SETLAYOUT = 115;
- {$EXTERNALSYM EMR_SETLAYOUT}
- EMR_TRANSPARENTBLT = 116;
- {$EXTERNALSYM EMR_TRANSPARENTBLT}
- EMR_RESERVED_117 = 117;
- {$EXTERNALSYM EMR_RESERVED_117}
- EMR_GRADIENTFILL = 118;
- {$EXTERNALSYM EMR_GRADIENTFILL}
- EMR_RESERVED_119 = 119;
- {$EXTERNALSYM EMR_RESERVED_119}
- EMR_RESERVED_120 = 120;
- {$EXTERNALSYM EMR_RESERVED_120}
- EMR_COLORMATCHTOTARGETW = 121;
- {$EXTERNALSYM EMR_COLORMATCHTOTARGETW}
- EMR_CREATECOLORSPACEW = 122;
- {$EXTERNALSYM EMR_CREATECOLORSPACEW}
- EMR_MIN = 1;
- {$EXTERNALSYM EMR_MIN}
- {$IFDEF WINVER_0500_GREATER}
- EMR_MAX = 122;
- {$EXTERNALSYM EMR_MAX}
- {$ELSE}
- {$IFDEF WINVER_0400_GREATER}
- EMR_MAX = 104;
- {$EXTERNALSYM EMR_MAX}
- {$ELSE}
- EMR_MAX = 97;
- {$EXTERNALSYM EMR_MAX}
- {$ENDIF}
- {$ENDIF}
- // Base record type for the enhanced metafile.
- type
- PEmr = ^TEmr;
- tagEMR = record
- iType: DWORD; // Enhanced metafile record type
- nSize: DWORD; // Length of the record in bytes.
- // This must be a multiple of 4.
- end;
- {$EXTERNALSYM tagEMR}
- EMR = tagEMR;
- {$EXTERNALSYM EMR}
- TEmr = EMR;
- // Base text record type for the enhanced metafile.
- PEmrText = ^TEmrText;
- tagEMRTEXT = record
- ptlReference: POINTL;
- nChars: DWORD;
- offString: DWORD; // Offset to the string
- fOptions: DWORD;
- rcl: RECTL;
- offDx: DWORD; // Offset to the inter-character spacing array.
- // This is always given.
- end;
- {$EXTERNALSYM tagEMRTEXT}
- EMRTEXT = tagEMRTEXT;
- {$EXTERNALSYM EMRTEXT}
- TEmrText = EMRTEXT;
- // Record structures for the enhanced metafile.
- PAbortPath = ^TAbortPath;
- tagABORTPATH = record
- emr: EMR;
- end;
- {$EXTERNALSYM tagABORTPATH}
- TAbortPath = tagABORTPATH;
- EMRABORTPATH = tagABORTPATH;
- {$EXTERNALSYM EMRABORTPATH}
- PEMRABORTPATH = ^EMRABORTPATH;
- {$EXTERNALSYM PEMRABORTPATH}
- EMRBEGINPATH = tagABORTPATH;
- {$EXTERNALSYM EMRBEGINPATH}
- PEMRBEGINPATH = ^EMRBEGINPATH;
- {$EXTERNALSYM PEMRBEGINPATH}
- EMRENDPATH = tagABORTPATH;
- {$EXTERNALSYM EMRENDPATH}
- PEMRENDPATH = ^EMRENDPATH;
- {$EXTERNALSYM PEMRENDPATH}
- EMRCLOSEFIGURE = tagABORTPATH;
- {$EXTERNALSYM EMRCLOSEFIGURE}
- PEMRCLOSEFIGURE = ^EMRCLOSEFIGURE;
- {$EXTERNALSYM PEMRCLOSEFIGURE}
- EMRFLATTENPATH = tagABORTPATH;
- {$EXTERNALSYM EMRFLATTENPATH}
- PEMRFLATTENPATH = ^EMRFLATTENPATH;
- {$EXTERNALSYM PEMRFLATTENPATH}
- EMRWIDENPATH = tagABORTPATH;
- {$EXTERNALSYM EMRWIDENPATH}
- PEMRWIDENPATH = ^EMRWIDENPATH;
- {$EXTERNALSYM PEMRWIDENPATH}
- EMRSETMETARGN = tagABORTPATH;
- {$EXTERNALSYM EMRSETMETARGN}
- PEMRSETMETARGN = ^EMRSETMETARGN;
- {$EXTERNALSYM PEMRSETMETARGN}
- EMRSAVEDC = tagABORTPATH;
- {$EXTERNALSYM EMRSAVEDC}
- PEMRSAVEDC = ^EMRSAVEDC;
- {$EXTERNALSYM PEMRSAVEDC}
- EMRREALIZEPALETTE = tagABORTPATH;
- {$EXTERNALSYM EMRREALIZEPALETTE}
- PEMRREALIZEPALETTE = ^EMRREALIZEPALETTE;
- {$EXTERNALSYM PEMRREALIZEPALETTE}
- PEmrSelectClipPath = ^TEmrSelectClipPath;
- tagEMRSELECTCLIPPATH = record
- emr: EMR;
- iMode: DWORD;
- end;
- {$EXTERNALSYM tagEMRSELECTCLIPPATH}
- EMRSELECTCLIPPATH = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSELECTCLIPPATH}
- LPEMRSELECTCLIPPATH = ^EMRSELECTCLIPPATH;
- {$EXTERNALSYM LPEMRSELECTCLIPPATH}
- TEmrSelectClipPath = EMRSELECTCLIPPATH;
- EMRSETBKMODE = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETBKMODE}
- PEMRSETBKMODE = ^EMRSETBKMODE;
- {$EXTERNALSYM PEMRSETBKMODE}
- EMRSETMAPMODE = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETMAPMODE}
- PEMRSETMAPMODE = ^EMRSETMAPMODE;
- {$EXTERNALSYM PEMRSETMAPMODE}
- EMRSETLAYOUT = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETLAYOUT}
- PEMRSETLAYOUT = ^EMRSETLAYOUT;
- {$EXTERNALSYM PEMRSETLAYOUT}
- EMRSETPOLYFILLMODE = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETPOLYFILLMODE}
- PEMRSETPOLYFILLMODE = EMRSETPOLYFILLMODE;
- {$EXTERNALSYM PEMRSETPOLYFILLMODE}
- EMRSETROP2 = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETROP2}
- PEMRSETROP2 = ^EMRSETROP2;
- {$EXTERNALSYM PEMRSETROP2}
- EMRSETSTRETCHBLTMODE = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETSTRETCHBLTMODE}
- PEMRSETSTRETCHBLTMODE = ^EMRSETSTRETCHBLTMODE;
- {$EXTERNALSYM PEMRSETSTRETCHBLTMODE}
- EMRSETICMMODE = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETICMMODE}
- PEMRSETICMMODE = ^EMRSETICMMODE;
- {$EXTERNALSYM PEMRSETICMMODE}
- EMRSETTEXTALIGN = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETTEXTALIGN}
- PEMRSETTEXTALIGN = ^EMRSETTEXTALIGN;
- {$EXTERNALSYM PEMRSETTEXTALIGN}
- PEmrSetMiterLimit = ^TEmrSetMiterLimit;
- tagEMRSETMITERLIMIT = record
- emr: EMR;
- eMiterLimit: FLOAT;
- end;
- {$EXTERNALSYM tagEMRSETMITERLIMIT}
- EMRSETMITERLIMIT = tagEMRSETMITERLIMIT;
- {$EXTERNALSYM EMRSETMITERLIMIT}
- TEmrSetMiterLimit = EMRSETMITERLIMIT;
- PEmrRestoreDc = ^TEmrRestoreDc;
- tagEMRRESTOREDC = record
- emr: EMR;
- iRelative: LONG; // Specifies a relative instance
- end;
- {$EXTERNALSYM tagEMRRESTOREDC}
- EMRRESTOREDC = tagEMRRESTOREDC;
- {$EXTERNALSYM EMRRESTOREDC}
- TEmrRestoreDc = EMRRESTOREDC;
- PEmrSetArcDirection = ^TEmrSetArcDirection;
- tagEMRSETARCDIRECTION = record
- emr: EMR;
- iArcDirection: DWORD; // Specifies the arc direction in the
- // advanced graphics mode.
- end;
- {$EXTERNALSYM tagEMRSETARCDIRECTION}
- EMRSETARCDIRECTION = tagEMRSETARCDIRECTION;
- {$EXTERNALSYM EMRSETARCDIRECTION}
- TEmrSetArcDirection = EMRSETARCDIRECTION;
- PEmrSetMapperFlags = ^TEmrSetMapperFlags;
- tagEMRSETMAPPERFLAGS = record
- emr: EMR;
- dwFlags: DWORD;
- end;
- {$EXTERNALSYM tagEMRSETMAPPERFLAGS}
- EMRSETMAPPERFLAGS = tagEMRSETMAPPERFLAGS;
- {$EXTERNALSYM EMRSETMAPPERFLAGS}
- TEmrSetMapperFlags = EMRSETMAPPERFLAGS;
- PEmrSetTextColor = ^TEmrSetTextColor;
- tagEMRSETTEXTCOLOR = record
- emr: EMR;
- crColor: COLORREF;
- end;
- {$EXTERNALSYM tagEMRSETTEXTCOLOR}
- EMRSETTEXTCOLOR = tagEMRSETTEXTCOLOR;
- {$EXTERNALSYM EMRSETTEXTCOLOR}
- EMRSETBKCOLOR = tagEMRSETTEXTCOLOR;
- {$EXTERNALSYM EMRSETBKCOLOR}
- PEMRSETBKCOLOR = ^EMRSETTEXTCOLOR;
- {$EXTERNALSYM PEMRSETBKCOLOR}
- TEmrSetTextColor = EMRSETTEXTCOLOR;
- PEmrSelectObject = ^TEmrSelectObject;
- tagEMRSELECTOBJECT = record
- emr: EMR;
- ihObject: DWORD; // Object handle index
- end;
- {$EXTERNALSYM tagEMRSELECTOBJECT}
- EMRSELECTOBJECT = tagEMRSELECTOBJECT;
- {$EXTERNALSYM EMRSELECTOBJECT}
- EMRDELETEOBJECT = tagEMRSELECTOBJECT;
- {$EXTERNALSYM EMRDELETEOBJECT}
- PEMRDELETEOBJECT = ^EMRDELETEOBJECT;
- {$EXTERNALSYM PEMRDELETEOBJECT}
- TEmrSelectObject = EMRSELECTOBJECT;
- PEmrSelectPalette = ^TEmrSelectPalette;
- tagEMRSELECTPALETTE = record
- emr: EMR;
- ihPal: DWORD; // Palette handle index, background mode only
- end;
- {$EXTERNALSYM tagEMRSELECTPALETTE}
- EMRSELECTPALETTE = tagEMRSELECTPALETTE;
- {$EXTERNALSYM EMRSELECTPALETTE}
- TEmrSelectPalette = EMRSELECTPALETTE;
- PEmrResizePalette = ^TEmrResizePalette;
- tagEMRRESIZEPALETTE = record
- emr: EMR;
- ihPal: DWORD; // Palette handle index
- cEntries: DWORD;
- end;
- {$EXTERNALSYM tagEMRRESIZEPALETTE}
- EMRRESIZEPALETTE = tagEMRRESIZEPALETTE;
- {$EXTERNALSYM EMRRESIZEPALETTE}
- TEmrResizePalette = EMRRESIZEPALETTE;
- PEmrSetPaletteEntries = ^TEmrSetPaletteEntries;
- tagEMRSETPALETTEENTRIES = record
- emr: EMR;
- ihPal: DWORD; // Palette handle index
- iStart: DWORD;
- cEntries: DWORD;
- aPalEntries: array [0..0] of PALETTEENTRY; // The peFlags fields do not contain any flags
- end;
- {$EXTERNALSYM tagEMRSETPALETTEENTRIES}
- EMRSETPALETTEENTRIES = tagEMRSETPALETTEENTRIES;
- {$EXTERNALSYM EMRSETPALETTEENTRIES}
- TEmrSetPaletteEntries = EMRSETPALETTEENTRIES;
- PEmrSetColorAdjustment = ^TEmrSetColorAdjustment;
- tagEMRSETCOLORADJUSTMENT = record
- emr: EMR;
- ColorAdjustment: COLORADJUSTMENT;
- end;
- {$EXTERNALSYM tagEMRSETCOLORADJUSTMENT}
- EMRSETCOLORADJUSTMENT = tagEMRSETCOLORADJUSTMENT;
- {$EXTERNALSYM EMRSETCOLORADJUSTMENT}
- TEmrSetColorAdjustment = EMRSETCOLORADJUSTMENT;
- PEmrGdiComment = ^TEmrGdiComment;
- tagEMRGDICOMMENT = record
- emr: EMR;
- cbData: DWORD; // Size of data in bytes
- Data: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRGDICOMMENT}
- EMRGDICOMMENT = tagEMRGDICOMMENT;
- {$EXTERNALSYM EMRGDICOMMENT}
- TEmrGdiComment = EMRGDICOMMENT;
- PEmrEof = ^TEmrEof;
- tagEMREOF = record
- emr: EMR;
- nPalEntries: DWORD; // Number of palette entries
- offPalEntries: DWORD; // Offset to the palette entries
- nSizeLast: DWORD; // Same as nSize and must be the last DWORD
- // of the record. The palette entries,
- // if exist, precede this field.
- end;
- {$EXTERNALSYM tagEMREOF}
- EMREOF = tagEMREOF;
- {$EXTERNALSYM EMREOF}
- TEmrEof = EMREOF;
- PEmrLineTo = ^TEmrLineTo;
- tagEMRLINETO = record
- emr: EMR;
- ptl: POINTL;
- end;
- {$EXTERNALSYM tagEMRLINETO}
- EMRLINETO = tagEMRLINETO;
- {$EXTERNALSYM EMRLINETO}
- EMRMOVETOEX = tagEMRLINETO;
- {$EXTERNALSYM EMRMOVETOEX}
- PEMRMOVETOEX = ^EMRMOVETOEX;
- {$EXTERNALSYM PEMRMOVETOEX}
- TEmrLineTo = EMRLINETO;
- PEmrOffsetClipRgn = ^TEmrOffsetClipRgn;
- tagEMROFFSETCLIPRGN = record
- emr: EMR;
- ptlOffset: POINTL;
- end;
- {$EXTERNALSYM tagEMROFFSETCLIPRGN}
- EMROFFSETCLIPRGN = tagEMROFFSETCLIPRGN;
- {$EXTERNALSYM EMROFFSETCLIPRGN}
- TEmrOffsetClipRgn = EMROFFSETCLIPRGN;
- PEmrFillPath = ^TEmrFillPath;
- tagEMRFILLPATH = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- end;
- {$EXTERNALSYM tagEMRFILLPATH}
- EMRFILLPATH = tagEMRFILLPATH;
- {$EXTERNALSYM EMRFILLPATH}
- EMRSTROKEANDFILLPATH = tagEMRFILLPATH;
- {$EXTERNALSYM EMRSTROKEANDFILLPATH}
- PEMRSTROKEANDFILLPATH = ^EMRSTROKEANDFILLPATH;
- {$EXTERNALSYM PEMRSTROKEANDFILLPATH}
- EMRSTROKEPATH = tagEMRFILLPATH;
- {$EXTERNALSYM EMRSTROKEPATH}
- PEMRSTROKEPATH = ^EMRSTROKEPATH;
- {$EXTERNALSYM PEMRSTROKEPATH}
- TEmrFillPath = EMRFILLPATH;
- PEmrExcludeClipRect = ^TEmrExcludeClipRect;
- tagEMREXCLUDECLIPRECT = record
- emr: EMR;
- rclClip: RECTL;
- end;
- {$EXTERNALSYM tagEMREXCLUDECLIPRECT}
- EMREXCLUDECLIPRECT = tagEMREXCLUDECLIPRECT;
- {$EXTERNALSYM EMREXCLUDECLIPRECT}
- EMRINTERSECTCLIPRECT = tagEMREXCLUDECLIPRECT;
- {$EXTERNALSYM EMRINTERSECTCLIPRECT}
- PEMRINTERSECTCLIPRECT = ^EMRINTERSECTCLIPRECT;
- {$EXTERNALSYM PEMRINTERSECTCLIPRECT}
- TEmrExcludeClipRect = EMREXCLUDECLIPRECT;
- PEmrSetViewPortOrgEx = ^TEmrSetViewPortOrgEx;
- tagEMRSETVIEWPORTORGEX = record
- emr: EMR;
- ptlOrigin: POINTL;
- end;
- {$EXTERNALSYM tagEMRSETVIEWPORTORGEX}
- EMRSETVIEWPORTORGEX = tagEMRSETVIEWPORTORGEX;
- {$EXTERNALSYM EMRSETVIEWPORTORGEX}
- EMRSETWINDOWORGEX = tagEMRSETVIEWPORTORGEX;
- {$EXTERNALSYM EMRSETWINDOWORGEX}
- PEMRSETWINDOWORGEX = ^EMRSETWINDOWORGEX;
- {$EXTERNALSYM PEMRSETWINDOWORGEX}
- EMRSETBRUSHORGEX = tagEMRSETVIEWPORTORGEX;
- {$EXTERNALSYM EMRSETBRUSHORGEX}
- PEMRSETBRUSHORGEX = ^EMRSETBRUSHORGEX;
- {$EXTERNALSYM PEMRSETBRUSHORGEX}
- TEmrSetViewPortOrgEx = EMRSETVIEWPORTORGEX;
- PEmrSetViewPortExtEx = ^TEmrSetViewPortExtEx;
- tagEMRSETVIEWPORTEXTEX = record
- emr: EMR;
- szlExtent: SIZEL;
- end;
- {$EXTERNALSYM tagEMRSETVIEWPORTEXTEX}
- EMRSETVIEWPORTEXTEX = tagEMRSETVIEWPORTEXTEX;
- {$EXTERNALSYM EMRSETVIEWPORTEXTEX}
- EMRSETWINDOWEXTEX = tagEMRSETVIEWPORTEXTEX;
- {$EXTERNALSYM EMRSETWINDOWEXTEX}
- TEmrSetViewPortExtEx = EMRSETVIEWPORTEXTEX;
- PEmrScaleViewPortExtEx = ^TEmrScaleViewPortExtEx;
- tagEMRSCALEVIEWPORTEXTEX = record
- emr: EMR;
- xNum: LONG;
- xDenom: LONG;
- yNum: LONG;
- yDenom: LONG;
- end;
- {$EXTERNALSYM tagEMRSCALEVIEWPORTEXTEX}
- EMRSCALEVIEWPORTEXTEX = tagEMRSCALEVIEWPORTEXTEX;
- {$EXTERNALSYM EMRSCALEVIEWPORTEXTEX}
- EMRSCALEWINDOWEXTEX = tagEMRSCALEVIEWPORTEXTEX;
- {$EXTERNALSYM EMRSCALEWINDOWEXTEX}
- PEMRSCALEWINDOWEXTEX = ^EMRSCALEWINDOWEXTEX;
- {$EXTERNALSYM PEMRSCALEWINDOWEXTEX}
- TEmrScaleViewPortExtEx = EMRSCALEVIEWPORTEXTEX;
- PEmrSetWorldTransform = ^TEmrSetWorldTransform;
- tagEMRSETWORLDTRANSFORM = record
- emr: EMR;
- xform: XFORM;
- end;
- {$EXTERNALSYM tagEMRSETWORLDTRANSFORM}
- EMRSETWORLDTRANSFORM = tagEMRSETWORLDTRANSFORM;
- {$EXTERNALSYM EMRSETWORLDTRANSFORM}
- TEmrSetWorldTransform = EMRSETWORLDTRANSFORM;
- PEmrModifyWorldTransform = ^TEmrModifyWorldTransform;
- tagEMRMODIFYWORLDTRANSFORM = record
- emr: EMR;
- xform: XFORM;
- iMode: DWORD;
- end;
- {$EXTERNALSYM tagEMRMODIFYWORLDTRANSFORM}
- EMRMODIFYWORLDTRANSFORM = tagEMRMODIFYWORLDTRANSFORM;
- {$EXTERNALSYM EMRMODIFYWORLDTRANSFORM}
- TEmrModifyWorldTransform = EMRMODIFYWORLDTRANSFORM;
- PEmrSetPixelV = ^TEmrSetPixelV;
- tagEMRSETPIXELV = record
- emr: EMR;
- ptlPixel: POINTL;
- crColor: COLORREF;
- end;
- {$EXTERNALSYM tagEMRSETPIXELV}
- EMRSETPIXELV = tagEMRSETPIXELV;
- {$EXTERNALSYM EMRSETPIXELV}
- TEmrSetPixelV = EMRSETPIXELV;
- PEmrExtFloodFill = ^TEmrExtFloodFill;
- tagEMREXTFLOODFILL = record
- emr: EMR;
- ptlStart: POINTL;
- crColor: COLORREF;
- iMode: DWORD;
- end;
- {$EXTERNALSYM tagEMREXTFLOODFILL}
- EMREXTFLOODFILL = tagEMREXTFLOODFILL;
- {$EXTERNALSYM EMREXTFLOODFILL}
- TEmrExtFloodFill = EMREXTFLOODFILL;
- PEmrEllipse = ^TEmrEllipse;
- tagEMRELLIPSE = record
- emr: EMR;
- rclBox: RECTL; // Inclusive-inclusive bounding rectangle
- end;
- {$EXTERNALSYM tagEMRELLIPSE}
- EMRELLIPSE = tagEMRELLIPSE;
- {$EXTERNALSYM EMRELLIPSE}
- EMRRECTANGLE = tagEMRELLIPSE;
- {$EXTERNALSYM EMRRECTANGLE}
- PEMRRECTANGLE = ^EMRRECTANGLE;
- {$EXTERNALSYM PEMRRECTANGLE}
- TEmrEllipse = EMRELLIPSE;
- PEmrRoundRect = ^TEmrRoundRect;
- tagEMRROUNDRECT = record
- emr: EMR;
- rclBox: RECTL; // Inclusive-inclusive bounding rectangle
- szlCorner: SIZEL;
- end;
- {$EXTERNALSYM tagEMRROUNDRECT}
- EMRROUNDRECT = tagEMRROUNDRECT;
- {$EXTERNALSYM EMRROUNDRECT}
- TEmrRoundRect = EMRROUNDRECT;
- PEmrArc = ^TEmrArc;
- tagEMRARC = record
- emr: EMR;
- rclBox: RECTL; // Inclusive-inclusive bounding rectangle
- ptlStart: POINTL;
- ptlEnd: POINTL;
- end;
- {$EXTERNALSYM tagEMRARC}
- EMRARC = tagEMRARC;
- {$EXTERNALSYM EMRARC}
- EMRARCTO = tagEMRARC;
- {$EXTERNALSYM EMRARCTO}
- PEMRARCTO = ^EMRARCTO;
- {$EXTERNALSYM PEMRARCTO}
- EMRCHORD = tagEMRARC;
- {$EXTERNALSYM EMRCHORD}
- PEMRCHORD = ^EMRCHORD;
- {$EXTERNALSYM PEMRCHORD}
- EMRPIE = tagEMRARC;
- {$EXTERNALSYM EMRPIE}
- PEMRPIE = ^EMRPIE;
- {$EXTERNALSYM PEMRPIE}
- TEmrArc = EMRARC;
- PEmrAngleArc = ^TEmrAngleArc;
- tagEMRANGLEARC = record
- emr: EMR;
- ptlCenter: POINTL;
- nRadius: DWORD;
- eStartAngle: FLOAT;
- eSweepAngle: FLOAT;
- end;
- {$EXTERNALSYM tagEMRANGLEARC}
- EMRANGLEARC = tagEMRANGLEARC;
- {$EXTERNALSYM EMRANGLEARC}
- TEmrAngleArc = EMRANGLEARC;
- PEmrPolyline = ^TEmrPolyline;
- tagEMRPOLYLINE = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cptl: DWORD;
- aptl: array [0..0] of POINTL;
- end;
- {$EXTERNALSYM tagEMRPOLYLINE}
- EMRPOLYLINE = tagEMRPOLYLINE;
- {$EXTERNALSYM EMRPOLYLINE}
- EMRPOLYBEZIER = tagEMRPOLYLINE;
- {$EXTERNALSYM EMRPOLYBEZIER}
- PEMRPOLYBEZIER = ^EMRPOLYBEZIER;
- {$EXTERNALSYM PEMRPOLYBEZIER}
- EMRPOLYGON = tagEMRPOLYLINE;
- {$EXTERNALSYM EMRPOLYGON}
- PEMRPOLYGON = ^EMRPOLYGON;
- {$EXTERNALSYM PEMRPOLYGON}
- EMRPOLYBEZIERTO = tagEMRPOLYLINE;
- {$EXTERNALSYM EMRPOLYBEZIERTO}
- PEMRPOLYBEZIERTO = ^EMRPOLYBEZIERTO;
- {$EXTERNALSYM PEMRPOLYBEZIERTO}
- EMRPOLYLINETO = tagEMRPOLYLINE;
- {$EXTERNALSYM EMRPOLYLINETO}
- PEMRPOLYLINETO = ^EMRPOLYLINETO;
- {$EXTERNALSYM PEMRPOLYLINETO}
- TEmrPolyline = EMRPOLYLINE;
- PEmrPolyline16 = ^TEmrPolyline16;
- tagEMRPOLYLINE16 = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cpts: DWORD;
- apts: array [0..0] of POINTS;
- end;
- {$EXTERNALSYM tagEMRPOLYLINE16}
- EMRPOLYLINE16 = tagEMRPOLYLINE16;
- {$EXTERNALSYM EMRPOLYLINE16}
- EMRPOLYBEZIER16 = tagEMRPOLYLINE16;
- {$EXTERNALSYM EMRPOLYBEZIER16}
- PEMRPOLYBEZIER16 = ^EMRPOLYBEZIER16;
- {$EXTERNALSYM PEMRPOLYBEZIER16}
- EMRPOLYGON16 = tagEMRPOLYLINE16;
- {$EXTERNALSYM EMRPOLYGON16}
- PEMRPOLYGON16 = ^EMRPOLYGON16;
- {$EXTERNALSYM PEMRPOLYGON16}
- EMRPOLYBEZIERTO16 = tagEMRPOLYLINE16;
- {$EXTERNALSYM EMRPOLYBEZIERTO16}
- PEMRPOLYBEZIERTO16 = ^EMRPOLYBEZIERTO16;
- {$EXTERNALSYM PEMRPOLYBEZIERTO16}
- EMRPOLYLINETO16 = tagEMRPOLYLINE16;
- {$EXTERNALSYM EMRPOLYLINETO16}
- PEMRPOLYLINETO16 = ^EMRPOLYLINETO16;
- {$EXTERNALSYM PEMRPOLYLINETO16}
- TEmrPolyline16 = EMRPOLYLINE16;
- PEmrPolyDraw = ^TEmrPolyDraw;
- tagEMRPOLYDRAW = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cptl: DWORD; // Number of points
- aptl: array [0..0] of POINTL; // Array of points
- abTypes: array [0..0] of BYTE; // Array of point types
- end;
- {$EXTERNALSYM tagEMRPOLYDRAW}
- EMRPOLYDRAW = tagEMRPOLYDRAW;
- {$EXTERNALSYM EMRPOLYDRAW}
- TEmrPolyDraw = EMRPOLYDRAW;
- PEmrPolyDraw16 = ^TEmrPolyDraw16;
- tagEMRPOLYDRAW16 = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cpts: DWORD; // Number of points
- apts: array [0..0] of POINTS; // Array of points
- abTypes: array [0..0] of BYTE; // Array of point types
- end;
- {$EXTERNALSYM tagEMRPOLYDRAW16}
- EMRPOLYDRAW16 = tagEMRPOLYDRAW16;
- {$EXTERNALSYM EMRPOLYDRAW16}
- TEmrPolyDraw16 = EMRPOLYDRAW16;
- PEmrPolyPolyline = ^TEmrPolyPolyline;
- tagEMRPOLYPOLYLINE = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- nPolys: DWORD; // Number of polys
- cptl: DWORD; // Total number of points in all polys
- aPolyCounts: array [0..0] of DWORD; // Array of point counts for each poly
- aptl: array [0..0] of POINTL; // Array of points
- end;
- {$EXTERNALSYM tagEMRPOLYPOLYLINE}
- EMRPOLYPOLYLINE = tagEMRPOLYPOLYLINE;
- {$EXTERNALSYM EMRPOLYPOLYLINE}
- EMRPOLYPOLYGON = tagEMRPOLYPOLYLINE;
- {$EXTERNALSYM EMRPOLYPOLYGON}
- TEmrPolyPolyline = EMRPOLYPOLYLINE;
- PEmrPolyPolyline16 = ^TEmrPolyPolyline16;
- tagEMRPOLYPOLYLINE16 = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- nPolys: DWORD; // Number of polys
- cpts: DWORD; // Total number of points in all polys
- aPolyCounts: array [0..0] of DWORD; // Array of point counts for each poly
- apts: array [0..0] of POINTS; // Array of points
- end;
- {$EXTERNALSYM tagEMRPOLYPOLYLINE16}
- EMRPOLYPOLYLINE16 = tagEMRPOLYPOLYLINE16;
- {$EXTERNALSYM EMRPOLYPOLYLINE16}
- EMRPOLYPOLYGON16 = tagEMRPOLYPOLYLINE16;
- {$EXTERNALSYM EMRPOLYPOLYGON16}
- PEMRPOLYPOLYGON16 = ^EMRPOLYPOLYGON16;
- {$EXTERNALSYM PEMRPOLYPOLYGON16}
- TEmrPolyPolyline16 = EMRPOLYPOLYLINE16;
- PEmrInvertRgn = ^TEmrInvertRgn;
- tagEMRINVERTRGN = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cbRgnData: DWORD; // Size of region data in bytes
- RgnData: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRINVERTRGN}
- EMRINVERTRGN = tagEMRINVERTRGN;
- {$EXTERNALSYM EMRINVERTRGN}
- EMRPAINTRGN = tagEMRINVERTRGN;
- {$EXTERNALSYM EMRPAINTRGN}
- TEmrInvertRgn = EMRINVERTRGN;
- PEmrFillRgn = ^TEmrFillRgn;
- tagEMRFILLRGN = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cbRgnData: DWORD; // Size of region data in bytes
- ihBrush: DWORD; // Brush handle index
- RgnData: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRFILLRGN}
- EMRFILLRGN = tagEMRFILLRGN;
- {$EXTERNALSYM EMRFILLRGN}
- TEmrFillRgn = EMRFILLRGN;
- PEmrFrameRgn = ^TEmrFrameRgn;
- tagEMRFRAMERGN = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cbRgnData: DWORD; // Size of region data in bytes
- ihBrush: DWORD; // Brush handle index
- szlStroke: SIZEL;
- RgnData: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRFRAMERGN}
- EMRFRAMERGN = tagEMRFRAMERGN;
- {$EXTERNALSYM EMRFRAMERGN}
- TEmrFrameRgn = EMRFRAMERGN;
- PEmrExtSelectClipRgn = ^TEmrExtSelectClipRgn;
- tagEMREXTSELECTCLIPRGN = record
- emr: EMR;
- cbRgnData: DWORD; // Size of region data in bytes
- iMode: DWORD;
- RgnData: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMREXTSELECTCLIPRGN}
- EMREXTSELECTCLIPRGN = tagEMREXTSELECTCLIPRGN;
- {$EXTERNALSYM EMREXTSELECTCLIPRGN}
- TEmrExtSelectClipRgn = EMREXTSELECTCLIPRGN;
- PEmrExtTextOutA = ^TEmrExtTextOutA;
- tagEMREXTTEXTOUTA = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- iGraphicsMode: DWORD; // Current graphics mode
- exScale: FLOAT; // X and Y scales from Page units to .01mm units
- eyScale: FLOAT; // if graphics mode is GM_COMPATIBLE.
- emrtext: EMRTEXT; // This is followed by the string and spacing array
- end;
- {$EXTERNALSYM tagEMREXTTEXTOUTA}
- EMREXTTEXTOUTA = tagEMREXTTEXTOUTA;
- {$EXTERNALSYM EMREXTTEXTOUTA}
- EMREXTTEXTOUTW = tagEMREXTTEXTOUTA;
- {$EXTERNALSYM EMREXTTEXTOUTW}
- PEMREXTTEXTOUTW = ^EMREXTTEXTOUTW;
- {$EXTERNALSYM PEMREXTTEXTOUTW}
- TEmrExtTextOutA = EMREXTTEXTOUTA;
- PEmrPolyTextOutA = ^TEmrPolyTextOutA;
- tagEMRPOLYTEXTOUTA = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- iGraphicsMode: DWORD; // Current graphics mode
- exScale: FLOAT; // X and Y scales from Page units to .01mm units
- eyScale: FLOAT; // if graphics mode is GM_COMPATIBLE.
- cStrings: LONG;
- aemrtext: array [0..0] of EMRTEXT; // Array of EMRTEXT structures. This is
- // followed by the strings and spacing arrays.
- end;
- {$EXTERNALSYM tagEMRPOLYTEXTOUTA}
- EMRPOLYTEXTOUTA = tagEMRPOLYTEXTOUTA;
- {$EXTERNALSYM EMRPOLYTEXTOUTA}
- EMRPOLYTEXTOUTW = tagEMRPOLYTEXTOUTA;
- {$EXTERNALSYM EMRPOLYTEXTOUTW}
- PEMRPOLYTEXTOUTW = ^EMRPOLYTEXTOUTW;
- {$EXTERNALSYM PEMRPOLYTEXTOUTW}
- TEmrPolyTextOutA = EMRPOLYTEXTOUTA;
- PEmrBitBlt = ^TEmrBitBlt;
- tagEMRBITBLT = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- cxDest: LONG;
- cyDest: LONG;
- dwRop: DWORD;
- xSrc: LONG;
- ySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage
- // (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- end;
- {$EXTERNALSYM tagEMRBITBLT}
- EMRBITBLT = tagEMRBITBLT;
- {$EXTERNALSYM EMRBITBLT}
- TEmrBitBlt = EMRBITBLT;
- PEmrStretchBlt = ^TEmrStretchBlt;
- tagEMRSTRETCHBLT = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- cxDest: LONG;
- cyDest: LONG;
- dwRop: DWORD;
- xSrc: LONG;
- ySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage
- // (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- cxSrc: LONG;
- cySrc: LONG;
- end;
- {$EXTERNALSYM tagEMRSTRETCHBLT}
- EMRSTRETCHBLT = tagEMRSTRETCHBLT;
- {$EXTERNALSYM EMRSTRETCHBLT}
- TEmrStretchBlt = EMRSTRETCHBLT;
- PEmrMaskBlt = ^TEmrMaskBlt;
- tagEMRMASKBLT = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- cxDest: LONG;
- cyDest: LONG;
- dwRop: DWORD;
- xSrc: LONG;
- ySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage
- // (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- xMask: LONG;
- yMask: LONG;
- iUsageMask: DWORD; // Mask bitmap info color table usage
- offBmiMask: DWORD; // Offset to the mask BITMAPINFO structure if any
- cbBmiMask: DWORD; // Size of the mask BITMAPINFO structure if any
- offBitsMask: DWORD; // Offset to the mask bitmap bits if any
- cbBitsMask: DWORD; // Size of the mask bitmap bits if any
- end;
- {$EXTERNALSYM tagEMRMASKBLT}
- EMRMASKBLT = tagEMRMASKBLT;
- {$EXTERNALSYM EMRMASKBLT}
- TEmrMaskBlt = EMRMASKBLT;
- PEmrPlgBlt = ^TEmrPlgBlt;
- tagEMRPLGBLT = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- aptlDest: array[0..2] of POINTL;
- xSrc: LONG;
- ySrc: LONG;
- cxSrc: LONG;
- cySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage
- // (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- xMask: LONG;
- yMask: LONG;
- iUsageMask: DWORD; // Mask bitmap info color table usage
- offBmiMask: DWORD; // Offset to the mask BITMAPINFO structure if any
- cbBmiMask: DWORD; // Size of the mask BITMAPINFO structure if any
- offBitsMask: DWORD; // Offset to the mask bitmap bits if any
- cbBitsMask: DWORD; // Size of the mask bitmap bits if any
- end;
- {$EXTERNALSYM tagEMRPLGBLT}
- EMRPLGBLT = tagEMRPLGBLT;
- {$EXTERNALSYM EMRPLGBLT}
- TEmrPlgBlt = EMRPLGBLT;
- PEmrSetDiBitsToDevice = ^TEmrSetDiBitsToDevice;
- tagEMRSETDIBITSTODEVICE = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- xSrc: LONG;
- ySrc: LONG;
- cxSrc: LONG;
- cySrc: LONG;
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- iUsageSrc: DWORD; // Source bitmap info color table usage
- iStartScan: DWORD;
- cScans: DWORD;
- end;
- {$EXTERNALSYM tagEMRSETDIBITSTODEVICE}
- EMRSETDIBITSTODEVICE = tagEMRSETDIBITSTODEVICE;
- {$EXTERNALSYM EMRSETDIBITSTODEVICE}
- TEmrSetDiBitsToDevice = EMRSETDIBITSTODEVICE;
- PEmrStretchDiBits = ^TEmrStretchDiBits;
- tagEMRSTRETCHDIBITS = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- xSrc: LONG;
- ySrc: LONG;
- cxSrc: LONG;
- cySrc: LONG;
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- iUsageSrc: DWORD; // Source bitmap info color table usage
- dwRop: DWORD;
- cxDest: LONG;
- cyDest: LONG;
- end;
- {$EXTERNALSYM tagEMRSTRETCHDIBITS}
- EMRSTRETCHDIBITS = tagEMRSTRETCHDIBITS;
- {$EXTERNALSYM EMRSTRETCHDIBITS}
- TEmrStretchDiBits = EMRSTRETCHDIBITS;
- PEmrExtCreateFontIndirectW = ^TEmrExtCreateFontIndirectW;
- tagEMREXTCREATEFONTINDIRECTW = record
- emr: EMR;
- ihFont: DWORD; // Font handle index
- elfw: EXTLOGFONTW;
- end;
- {$EXTERNALSYM tagEMREXTCREATEFONTINDIRECTW}
- EMREXTCREATEFONTINDIRECTW = tagEMREXTCREATEFONTINDIRECTW;
- {$EXTERNALSYM EMREXTCREATEFONTINDIRECTW}
- TEmrExtCreateFontIndirectW = EMREXTCREATEFONTINDIRECTW;
- PEmrCreatePalette = ^TEmrCreatePalette;
- tagEMRCREATEPALETTE = record
- emr: EMR;
- ihPal: DWORD; // Palette handle index
- lgpl: LOGPALETTE; // The peFlags fields in the palette entries
- // do not contain any flags
- end;
- {$EXTERNALSYM tagEMRCREATEPALETTE}
- EMRCREATEPALETTE = tagEMRCREATEPALETTE;
- {$EXTERNALSYM EMRCREATEPALETTE}
- TEmrCreatePalette = EMRCREATEPALETTE;
- PEmrCreatePen = ^TEmrCreatePen;
- tagEMRCREATEPEN = record
- emr: EMR;
- ihPen: DWORD; // Pen handle index
- lopn: LOGPEN;
- end;
- {$EXTERNALSYM tagEMRCREATEPEN}
- EMRCREATEPEN = tagEMRCREATEPEN;
- {$EXTERNALSYM EMRCREATEPEN}
- TEmrCreatePen = EMRCREATEPEN;
- PEmrExtCreatePen = ^TEmrExtCreatePen;
- tagEMREXTCREATEPEN = record
- emr: EMR;
- ihPen: DWORD; // Pen handle index
- offBmi: DWORD; // Offset to the BITMAPINFO structure if any
- cbBmi: DWORD; // Size of the BITMAPINFO structure if any
- // The bitmap info is followed by the bitmap
- // bits to form a packed DIB.
- offBits: DWORD; // Offset to the brush bitmap bits if any
- cbBits: DWORD; // Size of the brush bitmap bits if any
- elp: EXTLOGPEN; // The extended pen with the style array.
- end;
- {$EXTERNALSYM tagEMREXTCREATEPEN}
- EMREXTCREATEPEN = tagEMREXTCREATEPEN;
- {$EXTERNALSYM EMREXTCREATEPEN}
- TEmrExtCreatePen = EMREXTCREATEPEN;
- PEmrCreateBrushIndirect = ^TEmrCreateBrushIndirect;
- tagEMRCREATEBRUSHINDIRECT = record
- emr: EMR;
- ihBrush: DWORD; // Brush handle index
- lb: LOGBRUSH32; // The style must be BS_SOLID, BS_HOLLOW,
- // BS_NULL or BS_HATCHED.
- end;
- {$EXTERNALSYM tagEMRCREATEBRUSHINDIRECT}
- EMRCREATEBRUSHINDIRECT = tagEMRCREATEBRUSHINDIRECT;
- {$EXTERNALSYM EMRCREATEBRUSHINDIRECT}
- TEmrCreateBrushIndirect = EMRCREATEBRUSHINDIRECT;
- PEmrCreateMonoBrush = ^TEmrCreateMonoBrush;
- tagEMRCREATEMONOBRUSH = record
- emr: EMR;
- ihBrush: DWORD; // Brush handle index
- iUsage: DWORD; // Bitmap info color table usage
- offBmi: DWORD; // Offset to the BITMAPINFO structure
- cbBmi: DWORD; // Size of the BITMAPINFO structure
- offBits: DWORD; // Offset to the bitmap bits
- cbBits: DWORD; // Size of the bitmap bits
- end;
- {$EXTERNALSYM tagEMRCREATEMONOBRUSH}
- EMRCREATEMONOBRUSH = tagEMRCREATEMONOBRUSH;
- {$EXTERNALSYM EMRCREATEMONOBRUSH}
- TEmrCreateMonoBrush = EMRCREATEMONOBRUSH;
- PEmrCreateDibPatternBrushPt = ^TEmrCreateDibPatternBrushPt;
- tagEMRCREATEDIBPATTERNBRUSHPT = record
- emr: EMR;
- ihBrush: DWORD; // Brush handle index
- iUsage: DWORD; // Bitmap info color table usage
- offBmi: DWORD; // Offset to the BITMAPINFO structure
- cbBmi: DWORD; // Size of the BITMAPINFO structure
- // The bitmap info is followed by the bitmap
- // bits to form a packed DIB.
- offBits: DWORD; // Offset to the bitmap bits
- cbBits: DWORD; // Size of the bitmap bits
- end;
- {$EXTERNALSYM tagEMRCREATEDIBPATTERNBRUSHPT}
- EMRCREATEDIBPATTERNBRUSHPT = tagEMRCREATEDIBPATTERNBRUSHPT;
- {$EXTERNALSYM EMRCREATEDIBPATTERNBRUSHPT}
- TEmrCreateDibPatternBrushPt = EMRCREATEDIBPATTERNBRUSHPT;
- PEmrFormat = ^TEmrFormat;
- tagEMRFORMAT = record
- dSignature: DWORD; // Format signature, e.g. ENHMETA_SIGNATURE.
- nVersion: DWORD; // Format version number.
- cbData: DWORD; // Size of data in bytes.
- offData: DWORD; // Offset to data from GDICOMMENT_IDENTIFIER.
- // It must begin at a DWORD offset.
- end;
- {$EXTERNALSYM tagEMRFORMAT}
- EMRFORMAT = tagEMRFORMAT;
- {$EXTERNALSYM EMRFORMAT}
- TEmrFormat = EMRFORMAT;
- PEmrGlsRecord = ^TEmrGlsRecord;
- tagEMRGLSRECORD = record
- emr: EMR;
- cbData: DWORD; // Size of data in bytes
- Data: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRGLSRECORD}
- EMRGLSRECORD = tagEMRGLSRECORD;
- {$EXTERNALSYM EMRGLSRECORD}
- TEmrGlsRecord = EMRGLSRECORD;
- PEmrGlsBoundedRecord = ^TEmrGlsBoundedRecord;
- tagEMRGLSBOUNDEDRECORD = record
- emr: EMR;
- rclBounds: RECTL; // Bounds in recording coordinates
- cbData: DWORD; // Size of data in bytes
- Data: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRGLSBOUNDEDRECORD}
- EMRGLSBOUNDEDRECORD = tagEMRGLSBOUNDEDRECORD;
- {$EXTERNALSYM EMRGLSBOUNDEDRECORD}
- TEmrGlsBoundedRecord = EMRGLSBOUNDEDRECORD;
- PEmrPixelFormat = ^TEmrPixelFormat;
- tagEMRPIXELFORMAT = record
- emr: EMR;
- pfd: PIXELFORMATDESCRIPTOR;
- end;
- {$EXTERNALSYM tagEMRPIXELFORMAT}
- EMRPIXELFORMAT = tagEMRPIXELFORMAT;
- {$EXTERNALSYM EMRPIXELFORMAT}
- TEmrPixelFormat = EMRPIXELFORMAT;
- PEmrCreateColorSpace = ^TEmrCreateColorSpace;
- tagEMRCREATECOLORSPACE = record
- emr: EMR;
- ihCS: DWORD; // ColorSpace handle index
- lcs: LOGCOLORSPACEA; // Ansi version of LOGCOLORSPACE
- end;
- {$EXTERNALSYM tagEMRCREATECOLORSPACE}
- EMRCREATECOLORSPACE = tagEMRCREATECOLORSPACE;
- {$EXTERNALSYM EMRCREATECOLORSPACE}
- TEmrCreateColorSpace = EMRCREATECOLORSPACE;
- PEmrSetColorSpace = ^TEmrSetColorSpace;
- tagEMRSETCOLORSPACE = record
- emr: EMR;
- ihCS: DWORD; // ColorSpace handle index
- end;
- {$EXTERNALSYM tagEMRSETCOLORSPACE}
- EMRSETCOLORSPACE = tagEMRSETCOLORSPACE;
- {$EXTERNALSYM EMRSETCOLORSPACE}
- EMRSELECTCOLORSPACE = tagEMRSETCOLORSPACE;
- {$EXTERNALSYM EMRSELECTCOLORSPACE}
- PEMRSELECTCOLORSPACE = ^EMRSELECTCOLORSPACE;
- {$EXTERNALSYM PEMRSELECTCOLORSPACE}
- EMRDELETECOLORSPACE = tagEMRSETCOLORSPACE;
- {$EXTERNALSYM EMRDELETECOLORSPACE}
- PEMRDELETECOLORSPACE = ^EMRDELETECOLORSPACE;
- {$EXTERNALSYM PEMRDELETECOLORSPACE}
- TEmrSetColorSpace = EMRSETCOLORSPACE;
- PEmrExtEscape = ^TEmrExtEscape;
- tagEMREXTESCAPE = record
- emr: EMR;
- iEscape: INT; // Escape code
- cbEscData: INT; // Size of escape data
- EscData: array [0..0] of BYTE; // Escape data
- end;
- {$EXTERNALSYM tagEMREXTESCAPE}
- EMREXTESCAPE = tagEMREXTESCAPE;
- {$EXTERNALSYM EMREXTESCAPE}
- EMRDRAWESCAPE = tagEMREXTESCAPE;
- {$EXTERNALSYM EMRDRAWESCAPE}
- PEMRDRAWESCAPE = ^EMRDRAWESCAPE;
- {$EXTERNALSYM PEMRDRAWESCAPE}
- TEmrExtEscape = EMREXTESCAPE;
- PEmrNamedEscape = ^TEmrNamedEscape;
- tagEMRNAMEDESCAPE = record
- emr: EMR;
- iEscape: INT; // Escape code
- cbDriver: INT; // Size of driver name
- cbEscData: INT; // Size of escape data
- EscData: array [0..0] of BYTE; // Driver name and Escape data
- end;
- {$EXTERNALSYM tagEMRNAMEDESCAPE}
- EMRNAMEDESCAPE = tagEMRNAMEDESCAPE;
- {$EXTERNALSYM EMRNAMEDESCAPE}
- TEmrNamedEscape = EMRNAMEDESCAPE;
- const
- SETICMPROFILE_EMBEDED = $00000001;
- {$EXTERNALSYM SETICMPROFILE_EMBEDED}
- type
- PEmrSetIcmProfile = ^TEmrSetIcmProfile;
- tagEMRSETICMPROFILE = record
- emr: EMR;
- dwFlags: DWORD; // flags
- cbName: DWORD; // Size of desired profile name
- cbData: DWORD; // Size of raw profile data if attached
- Data: array [0..0] of BYTE; // Array size is cbName + cbData
- end;
- {$EXTERNALSYM tagEMRSETICMPROFILE}
- EMRSETICMPROFILE = tagEMRSETICMPROFILE;
- {$EXTERNALSYM EMRSETICMPROFILE}
- EMRSETICMPROFILEA = tagEMRSETICMPROFILE;
- {$EXTERNALSYM EMRSETICMPROFILEA}
- PEMRSETICMPROFILEA = ^EMRSETICMPROFILEA;
- {$EXTERNALSYM PEMRSETICMPROFILEA}
- EMRSETICMPROFILEW = tagEMRSETICMPROFILE;
- {$EXTERNALSYM EMRSETICMPROFILEW}
- PEMRSETICMPROFILEW = ^EMRSETICMPROFILEW;
- {$EXTERNALSYM PEMRSETICMPROFILEW}
- TEmrSetIcmProfile = EMRSETICMPROFILE;
- const
- CREATECOLORSPACE_EMBEDED = $00000001;
- {$EXTERNALSYM CREATECOLORSPACE_EMBEDED}
- type
- PEmrCreateColorSpaceW = ^TEmrCreateColorSpaceW;
- tagEMRCREATECOLORSPACEW = record
- emr: EMR;
- ihCS: DWORD; // ColorSpace handle index
- lcs: LOGCOLORSPACEW; // Unicode version of logical color space structure
- dwFlags: DWORD; // flags
- cbData: DWORD; // size of raw source profile data if attached
- Data: array [0..0] of BYTE; // Array size is cbData
- end;
- {$EXTERNALSYM tagEMRCREATECOLORSPACEW}
- EMRCREATECOLORSPACEW = tagEMRCREATECOLORSPACEW;
- {$EXTERNALSYM EMRCREATECOLORSPACEW}
- TEmrCreateColorSpaceW = EMRCREATECOLORSPACEW;
- const
- COLORMATCHTOTARGET_EMBEDED = $00000001;
- {$EXTERNALSYM COLORMATCHTOTARGET_EMBEDED}
- type
- PColorMatchToTarget = ^TColorMatchToTarget;
- tagCOLORMATCHTOTARGET = record
- emr: EMR;
- dwAction: DWORD; // CS_ENABLE, CS_DISABLE or CS_DELETE_TRANSFORM
- dwFlags: DWORD; // flags
- cbName: DWORD; // Size of desired target profile name
- cbData: DWORD; // Size of raw target profile data if attached
- Data: array [0..0] of BYTE; // Array size is cbName + cbData
- end;
- {$EXTERNALSYM tagCOLORMATCHTOTARGET}
- //COLORMATCHTOTARGET = tagCOLORMATCHTOTARGET;
- //{$EXTERNALSYM COLORMATCHTOTARGET}
- TColorMatchToTarget = tagCOLORMATCHTOTARGET;
- PColorCorrectPalette = ^TColorCorrectPalette;
- tagCOLORCORRECTPALETTE = record
- emr: EMR;
- ihPalette: DWORD; // Palette handle index
- nFirstEntry: DWORD; // Index of first entry to correct
- nPalEntries: DWORD; // Number of palette entries to correct
- nReserved: DWORD; // Reserved
- end;
- {$EXTERNALSYM tagCOLORCORRECTPALETTE}
- //COLORCORRECTPALETTE = tagCOLORCORRECTPALETTE;
- //{$EXTERNALSYM COLORCORRECTPALETTE}
- TColorCorrectPalette = tagCOLORCORRECTPALETTE;
- PEmrAlphaBlend = ^TEmrAlphaBlend;
- tagEMRALPHABLEND = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- cxDest: LONG;
- cyDest: LONG;
- dwRop: DWORD;
- xSrc: LONG;
- ySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- cxSrc: LONG;
- cySrc: LONG;
- end;
- {$EXTERNALSYM tagEMRALPHABLEND}
- EMRALPHABLEND = tagEMRALPHABLEND;
- {$EXTERNALSYM EMRALPHABLEND}
- TEmrAlphaBlend = EMRALPHABLEND;
- PEmrGradientFill = ^TEmrGradientFill;
- tagEMRGRADIENTFILL = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- nVer: DWORD;
- nTri: DWORD;
- ulMode: ULONG;
- Ver: array [0..0] of TRIVERTEX;
- end;
- {$EXTERNALSYM tagEMRGRADIENTFILL}
- EMRGRADIENTFILL = tagEMRGRADIENTFILL;
- {$EXTERNALSYM EMRGRADIENTFILL}
- TEmrGradientFill = EMRGRADIENTFILL;
- PEmrTransparentBlt = ^TEmrTransparentBlt;
- tagEMRTRANSPARENTBLT = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- cxDest: LONG;
- cyDest: LONG;
- dwRop: DWORD;
- xSrc: LONG;
- ySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage
- // (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- cxSrc: LONG;
- cySrc: LONG;
- end;
- {$EXTERNALSYM tagEMRTRANSPARENTBLT}
- EMRTRANSPARENTBLT = tagEMRTRANSPARENTBLT;
- {$EXTERNALSYM EMRTRANSPARENTBLT}
- TEmrTransparentBlt = EMRTRANSPARENTBLT;
- const
- GDICOMMENT_IDENTIFIER = $43494447;
- {$EXTERNALSYM GDICOMMENT_IDENTIFIER}
- GDICOMMENT_WINDOWS_METAFILE = DWORD($80000001);
- {$EXTERNALSYM GDICOMMENT_WINDOWS_METAFILE}
- GDICOMMENT_BEGINGROUP = $00000002;
- {$EXTERNALSYM GDICOMMENT_BEGINGROUP}
- GDICOMMENT_ENDGROUP = $00000003;
- {$EXTERNALSYM GDICOMMENT_ENDGROUP}
- GDICOMMENT_MULTIFORMATS = $40000004;
- {$EXTERNALSYM GDICOMMENT_MULTIFORMATS}
- EPS_SIGNATURE = $46535045;
- {$EXTERNALSYM EPS_SIGNATURE}
- GDICOMMENT_UNICODE_STRING = $00000040;
- {$EXTERNALSYM GDICOMMENT_UNICODE_STRING}
- GDICOMMENT_UNICODE_END = $00000080;
- {$EXTERNALSYM GDICOMMENT_UNICODE_END}
- // OpenGL wgl prototypes
- function wglCopyContext(hglrcSrc, hglrcDest: HGLRC; mask: UINT): BOOL; stdcall;
- {$EXTERNALSYM wglCopyContext}
- function wglCreateContext(hdc: HDC): HGLRC; stdcall;
- {$EXTERNALSYM wglCreateContext}
- function wglCreateLayerContext(hdc: HDC; iLayerPlane: Integer): HGLRC; stdcall;
- {$EXTERNALSYM wglCreateLayerContext}
- function wglDeleteContext(hglrc: HGLRC): BOOL; stdcall;
- {$EXTERNALSYM wglDeleteContext}
- function wglGetCurrentContext: HGLRC; stdcall;
- {$EXTERNALSYM wglGetCurrentContext}
- function wglGetCurrentDC: HDC; stdcall;
- {$EXTERNALSYM wglGetCurrentDC}
- function wglGetProcAddress(lpszProc: LPCSTR): PROC; stdcall;
- {$EXTERNALSYM wglGetProcAddress}
- function wglMakeCurrent(hdc: HDC; hglrc: HGLRC): BOOL; stdcall;
- {$EXTERNALSYM wglMakeCurrent}
- function wglShareLists(hglrc1, hglrc2: HGLRC): BOOL; stdcall;
- {$EXTERNALSYM wglShareLists}
- function wglUseFontBitmapsA(hdc: HDC; first, count, listBase: DWORD): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontBitmapsA}
- function wglUseFontBitmapsW(hdc: HDC; first, count, listBase: DWORD): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontBitmapsW}
- {$IFDEF UNICODE}
- function wglUseFontBitmaps(hdc: HDC; first, count, listBase: DWORD): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontBitmaps}
- {$ELSE}
- function wglUseFontBitmaps(hdc: HDC; first, count, listBase: DWORD): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontBitmaps}
- {$ENDIF}
- function SwapBuffers(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM SwapBuffers}
- type
- PPointFloat = ^TPointFloat;
- _POINTFLOAT = record
- x: FLOAT;
- y: FLOAT;
- end;
- {$EXTERNALSYM _POINTFLOAT}
- POINTFLOAT = _POINTFLOAT;
- {$EXTERNALSYM POINTFLOAT}
- TPointFloat = _POINTFLOAT;
- PGlyphMetricsFloat = ^TGlyphMetricsFloat;
- _GLYPHMETRICSFLOAT = record
- gmfBlackBoxX: FLOAT;
- gmfBlackBoxY: FLOAT;
- gmfptGlyphOrigin: POINTFLOAT;
- gmfCellIncX: FLOAT;
- gmfCellIncY: FLOAT;
- end;
- {$EXTERNALSYM _GLYPHMETRICSFLOAT}
- GLYPHMETRICSFLOAT = _GLYPHMETRICSFLOAT;
- {$EXTERNALSYM GLYPHMETRICSFLOAT}
- LPGLYPHMETRICSFLOAT = ^GLYPHMETRICSFLOAT;
- {$EXTERNALSYM LPGLYPHMETRICSFLOAT}
- TGlyphMetricsFloat = _GLYPHMETRICSFLOAT;
- const
- WGL_FONT_LINES = 0;
- {$EXTERNALSYM WGL_FONT_LINES}
- WGL_FONT_POLYGONS = 1;
- {$EXTERNALSYM WGL_FONT_POLYGONS}
- function wglUseFontOutlinesA(hdc: HDC; first, count, listBase: DWORD; deviation,
- extrusion: FLOAT; format: Integer; lpgmf: LPGLYPHMETRICSFLOAT): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontOutlinesA}
- function wglUseFontOutlinesW(hdc: HDC; first, count, listBase: DWORD; deviation,
- extrusion: FLOAT; format: Integer; lpgmf: LPGLYPHMETRICSFLOAT): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontOutlinesW}
- {$IFDEF UNICODE}
- function wglUseFontOutlines(hdc: HDC; first, count, listBase: DWORD; deviation,
- extrusion: FLOAT; format: Integer; lpgmf: LPGLYPHMETRICSFLOAT): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontOutlines}
- {$ELSE}
- function wglUseFontOutlines(hdc: HDC; first, count, listBase: DWORD; deviation,
- extrusion: FLOAT; format: Integer; lpgmf: LPGLYPHMETRICSFLOAT): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontOutlines}
- {$ENDIF}
- // Layer plane descriptor
- type
- PLayerPlaneDescriptor = ^TLayerPlaneDescriptor;
- tagLAYERPLANEDESCRIPTOR = record
- nSize: WORD;
- nVersion: WORD;
- dwFlags: DWORD;
- iPixelType: BYTE;
- cColorBits: BYTE;
- cRedBits: BYTE;
- cRedShift: BYTE;
- cGreenBits: BYTE;
- cGreenShift: BYTE;
- cBlueBits: BYTE;
- cBlueShift: BYTE;
- cAlphaBits: BYTE;
- cAlphaShift: BYTE;
- cAccumBits: BYTE;
- cAccumRedBits: BYTE;
- cAccumGreenBits: BYTE;
- cAccumBlueBits: BYTE;
- cAccumAlphaBits: BYTE;
- cDepthBits: BYTE;
- cStencilBits: BYTE;
- cAuxBuffers: BYTE;
- iLayerPlane: BYTE;
- bReserved: BYTE;
- crTransparent: COLORREF;
- end;
- {$EXTERNALSYM tagLAYERPLANEDESCRIPTOR}
- LAYERPLANEDESCRIPTOR = tagLAYERPLANEDESCRIPTOR;
- {$EXTERNALSYM LAYERPLANEDESCRIPTOR}
- LPLAYERPLANEDESCRIPTOR = ^LAYERPLANEDESCRIPTOR;
- {$EXTERNALSYM LPLAYERPLANEDESCRIPTOR}
- TLayerPlaneDescriptor = LAYERPLANEDESCRIPTOR;
- // LAYERPLANEDESCRIPTOR flags
- const
- LPD_DOUBLEBUFFER = $00000001;
- {$EXTERNALSYM LPD_DOUBLEBUFFER}
- LPD_STEREO = $00000002;
- {$EXTERNALSYM LPD_STEREO}
- LPD_SUPPORT_GDI = $00000010;
- {$EXTERNALSYM LPD_SUPPORT_GDI}
- LPD_SUPPORT_OPENGL = $00000020;
- {$EXTERNALSYM LPD_SUPPORT_OPENGL}
- LPD_SHARE_DEPTH = $00000040;
- {$EXTERNALSYM LPD_SHARE_DEPTH}
- LPD_SHARE_STENCIL = $00000080;
- {$EXTERNALSYM LPD_SHARE_STENCIL}
- LPD_SHARE_ACCUM = $00000100;
- {$EXTERNALSYM LPD_SHARE_ACCUM}
- LPD_SWAP_EXCHANGE = $00000200;
- {$EXTERNALSYM LPD_SWAP_EXCHANGE}
- LPD_SWAP_COPY = $00000400;
- {$EXTERNALSYM LPD_SWAP_COPY}
- LPD_TRANSPARENT = $00001000;
- {$EXTERNALSYM LPD_TRANSPARENT}
- LPD_TYPE_RGBA = 0;
- {$EXTERNALSYM LPD_TYPE_RGBA}
- LPD_TYPE_COLORINDEX = 1;
- {$EXTERNALSYM LPD_TYPE_COLORINDEX}
- // wglSwapLayerBuffers flags
- WGL_SWAP_MAIN_PLANE = $00000001;
- {$EXTERNALSYM WGL_SWAP_MAIN_PLANE}
- WGL_SWAP_OVERLAY1 = $00000002;
- {$EXTERNALSYM WGL_SWAP_OVERLAY1}
- WGL_SWAP_OVERLAY2 = $00000004;
- {$EXTERNALSYM WGL_SWAP_OVERLAY2}
- WGL_SWAP_OVERLAY3 = $00000008;
- {$EXTERNALSYM WGL_SWAP_OVERLAY3}
- WGL_SWAP_OVERLAY4 = $00000010;
- {$EXTERNALSYM WGL_SWAP_OVERLAY4}
- WGL_SWAP_OVERLAY5 = $00000020;
- {$EXTERNALSYM WGL_SWAP_OVERLAY5}
- WGL_SWAP_OVERLAY6 = $00000040;
- {$EXTERNALSYM WGL_SWAP_OVERLAY6}
- WGL_SWAP_OVERLAY7 = $00000080;
- {$EXTERNALSYM WGL_SWAP_OVERLAY7}
- WGL_SWAP_OVERLAY8 = $00000100;
- {$EXTERNALSYM WGL_SWAP_OVERLAY8}
- WGL_SWAP_OVERLAY9 = $00000200;
- {$EXTERNALSYM WGL_SWAP_OVERLAY9}
- WGL_SWAP_OVERLAY10 = $00000400;
- {$EXTERNALSYM WGL_SWAP_OVERLAY10}
- WGL_SWAP_OVERLAY11 = $00000800;
- {$EXTERNALSYM WGL_SWAP_OVERLAY11}
- WGL_SWAP_OVERLAY12 = $00001000;
- {$EXTERNALSYM WGL_SWAP_OVERLAY12}
- WGL_SWAP_OVERLAY13 = $00002000;
- {$EXTERNALSYM WGL_SWAP_OVERLAY13}
- WGL_SWAP_OVERLAY14 = $00004000;
- {$EXTERNALSYM WGL_SWAP_OVERLAY14}
- WGL_SWAP_OVERLAY15 = $00008000;
- {$EXTERNALSYM WGL_SWAP_OVERLAY15}
- WGL_SWAP_UNDERLAY1 = $00010000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY1}
- WGL_SWAP_UNDERLAY2 = $00020000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY2}
- WGL_SWAP_UNDERLAY3 = $00040000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY3}
- WGL_SWAP_UNDERLAY4 = $00080000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY4}
- WGL_SWAP_UNDERLAY5 = $00100000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY5}
- WGL_SWAP_UNDERLAY6 = $00200000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY6}
- WGL_SWAP_UNDERLAY7 = $00400000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY7}
- WGL_SWAP_UNDERLAY8 = $00800000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY8}
- WGL_SWAP_UNDERLAY9 = $01000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY9}
- WGL_SWAP_UNDERLAY10 = $02000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY10}
- WGL_SWAP_UNDERLAY11 = $04000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY11}
- WGL_SWAP_UNDERLAY12 = $08000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY12}
- WGL_SWAP_UNDERLAY13 = $10000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY13}
- WGL_SWAP_UNDERLAY14 = $20000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY14}
- WGL_SWAP_UNDERLAY15 = $40000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY15}
- function wglDescribeLayerPlane(hdc: HDC; iPixelFormat, iLayerPlane: Integer;
- nBytes: UINT; plpd: LPLAYERPLANEDESCRIPTOR): BOOL; stdcall;
- {$EXTERNALSYM wglDescribeLayerPlane}
- function wglSetLayerPaletteEntries(hdc: HDC; iLayerPlane, iStart, cEntries: Integer;
- pcr: LPCOLORREF): Integer; stdcall;
- {$EXTERNALSYM wglSetLayerPaletteEntries}
- function wglGetLayerPaletteEntries(hdc: HDC; iLayerPlane, iStart, cEntries: Integer;
- pcr: LPCOLORREF): Integer; stdcall;
- {$EXTERNALSYM wglGetLayerPaletteEntries}
- function wglRealizeLayerPalette(hdc: HDC; iLayerPlane: Integer; bRealize: BOOL): BOOL; stdcall;
- {$EXTERNALSYM wglRealizeLayerPalette}
- function wglSwapLayerBuffers(hdc: HDC; fuPlanes: UINT): BOOL; stdcall;
- {$EXTERNALSYM wglSwapLayerBuffers}
- type
- PWglSwap = ^TWglSwap;
- _WGLSWAP = record
- hdc: HDC;
- uiFlags: UINT;
- end;
- {$EXTERNALSYM _WGLSWAP}
- WGLSWAP = _WGLSWAP;
- {$EXTERNALSYM WGLSWAP}
- LPWGLSWAP = ^WGLSWAP;
- {$EXTERNALSYM LPWGLSWAP}
- TWglSwap = _WGLSWAP;
- const
- WGL_SWAPMULTIPLE_MAX = 16;
- {$EXTERNALSYM WGL_SWAPMULTIPLE_MAX}