1 | ' api_gdi.sbp - Graphics Device Integerface API
|
---|
2 |
|
---|
3 | #ifdef UNICODE
|
---|
4 | Const _FuncName_CopyEnhMetaFile = "CopyEnhMetaFileW"
|
---|
5 | Const _FuncName_CopyMetaFile = "CopyMetaFileW"
|
---|
6 | Const _FuncName_CreateDC = "CreateDCW"
|
---|
7 | Const _FuncName_CreateEnhMetaFile = "CreateEnhMetaFileW"
|
---|
8 | Const _FuncName_CreateMetaFile = "CreateMetaFileW"
|
---|
9 | Const _FuncName_CreateFont = "CreateFontW"
|
---|
10 | Const _FuncName_CreateFontIndirect = "CreateFontIndirectW"
|
---|
11 | Const _FuncName_GetEnhMetaFile = "GetEnhMetaFileW"
|
---|
12 | Const _FuncName_GetEnhMetaFileDescription = "GetEnhMetaFileDescriptionW"
|
---|
13 | Const _FuncName_GetObject = "GetObjectW"
|
---|
14 | Const _FuncName_GetTextFace = "GetTextFaceW"
|
---|
15 | Const _FuncName_GetTextMetrics = "GetTextMetricsW"
|
---|
16 | Const _FuncName_ResetDC = "ResetDCW"
|
---|
17 | Const _FuncName_StartDoc = "StartDocW"
|
---|
18 | Const _FuncName_wglUseFontBitmaps = "wglUseFontBitmapsW"
|
---|
19 | Const _FuncName_wglUseFontOutlines = "wglUseFontOutlinesW"
|
---|
20 | #else
|
---|
21 | Const _FuncName_CopyEnhMetaFile = "CopyEnhMetaFileA"
|
---|
22 | Const _FuncName_CopyMetaFile = "CopyMetaFileA"
|
---|
23 | Const _FuncName_CreateDC = "CreateDCA"
|
---|
24 | Const _FuncName_CreateEnhMetaFile = "CreateEnhMetaFileA"
|
---|
25 | Const _FuncName_CreateMetaFile = "CreateMetaFileA"
|
---|
26 | Const _FuncName_CreateFont = "CreateFontA"
|
---|
27 | Const _FuncName_CreateFontIndirect = "CreateFontIndirectA"
|
---|
28 | Const _FuncName_GetEnhMetaFile = "GetEnhMetaFileA"
|
---|
29 | Const _FuncName_GetEnhMetaFileDescription = "GetEnhMetaFileDescriptionA"
|
---|
30 | Const _FuncName_GetObject = "GetObjectA"
|
---|
31 | Const _FuncName_GetTextFace = "GetTextFaceA"
|
---|
32 | Const _FuncName_GetTextMetrics = "GetTextMetricsA"
|
---|
33 | Const _FuncName_ResetDC = "ResetDCA"
|
---|
34 | Const _FuncName_StartDoc = "StartDocA"
|
---|
35 | Const _FuncName_wglUseFontBitmaps = "wglUseFontBitmapsA"
|
---|
36 | Const _FuncName_wglUseFontOutlines = "wglUseFontOutlinesA"
|
---|
37 | #endif
|
---|
38 |
|
---|
39 | Const CLR_INVALID = &HFFFFFFFF
|
---|
40 | Const GDI_ERROR = &HFFFFFFFF
|
---|
41 |
|
---|
42 | TypeDef BCHAR = TBYTE
|
---|
43 |
|
---|
44 | ' Metafile and EnhancedMetafile
|
---|
45 | Type EMR
|
---|
46 | iType As DWord
|
---|
47 | nSize As DWord
|
---|
48 | End Type
|
---|
49 |
|
---|
50 | Type Align(2) METAHEADER
|
---|
51 | mtType As Word
|
---|
52 | mtHeaderSize As Word
|
---|
53 | mtVersion As Word
|
---|
54 | mtSize As DWord
|
---|
55 | mtNoObjects As Word
|
---|
56 | mtMaxRecord As DWord
|
---|
57 | mtNoParameters As Word
|
---|
58 | End Type
|
---|
59 | TypeDef PMETAHEADER = *METAHEADER
|
---|
60 |
|
---|
61 | Type ENHMETAHEADER
|
---|
62 | iType As DWord
|
---|
63 | nSize As DWord
|
---|
64 | rclBounds As RECT
|
---|
65 | rclFrame As RECT
|
---|
66 | dSignature As DWord
|
---|
67 | nVersion As DWord
|
---|
68 | nBytes As DWord
|
---|
69 | nRecords As DWord
|
---|
70 | nHandles As Word
|
---|
71 | sReserved As Word
|
---|
72 | nDescription As DWord
|
---|
73 | offDescription As DWord
|
---|
74 | nPalEntries As DWord
|
---|
75 | szlDevice As SIZE
|
---|
76 | szlMillimeters As SIZE
|
---|
77 | cbPixelFormat As DWord
|
---|
78 | offPixelFormat As DWord
|
---|
79 | bOpenGL As DWord
|
---|
80 | '#if WINVER >= 0x0500
|
---|
81 | 'szlMicrometers As SIZE
|
---|
82 | '#endif
|
---|
83 | End Type
|
---|
84 | TypeDef PENHMETAHEADER = *ENHMETAHEADER
|
---|
85 |
|
---|
86 | Type HANDLETABLE
|
---|
87 | objectHandle[ELM(1)] As HGDIOBJ
|
---|
88 | End Type
|
---|
89 |
|
---|
90 | Type METARECORD
|
---|
91 | rdSize As DWord
|
---|
92 | rdFunction As Word
|
---|
93 | rdParm[ELM(1)] As Word
|
---|
94 | End Type
|
---|
95 |
|
---|
96 | Type ENHMETARECORD
|
---|
97 | iType As DWord
|
---|
98 | nSize As DWord
|
---|
99 | dParm[ELM(1)] As DWord
|
---|
100 | End Type
|
---|
101 |
|
---|
102 | Type METAFILEPICT
|
---|
103 | mm As Long
|
---|
104 | xExt As Long
|
---|
105 | yExt As Long
|
---|
106 | hMF As HMETAFILE
|
---|
107 | End Type
|
---|
108 |
|
---|
109 | TypeDef ENHMFENUMPROC = *Function(hdc As HDC, ByRef HTable As HANDLETABLE, ByRef EMFR As ENHMETARECORD, nObj As Long, lpData As LPARAM) As Long
|
---|
110 | TypeDef MFENUMPROC = *Function(hdc As HDC, ByRef HTable As HANDLETABLE, ByRef MFR As METARECORD, nObj As Long, lpClientData As LPARAM) As Long
|
---|
111 |
|
---|
112 |
|
---|
113 | ' RGB Color
|
---|
114 | Const RGB(r, g, b) = ((r) As Long) Or (((g) As Long) <<8) Or (((b) As Long) <<16)
|
---|
115 | Const PALETTERGB(r, g, b) = (&h02000000 Or RGB(r,g,b))
|
---|
116 | Const PALETTEINDEX(i) = ((&h01000000 Or (i) As Word As DWord) As COLORREF)
|
---|
117 |
|
---|
118 | Const GetRValue(rgb) = (rgb And &hff)
|
---|
119 | Const GetGValue(rgb) = ((rgb >> 8) And &hff)
|
---|
120 | Const GetBValue(rgb) = ((rgb >> 16) And &hff)
|
---|
121 |
|
---|
122 | Type RGBQUAD
|
---|
123 | rgbBlue As Byte
|
---|
124 | rgbGreen As Byte
|
---|
125 | rgbRed As Byte
|
---|
126 | rgbReserved As Byte
|
---|
127 | End Type
|
---|
128 |
|
---|
129 | Type Align(1) RGBTRIPLE
|
---|
130 | rgbtBlue As Byte
|
---|
131 | rgbtGreen As Byte
|
---|
132 | rgbtRed As Byte
|
---|
133 | End Type
|
---|
134 |
|
---|
135 | ' CMYK Color
|
---|
136 | Const GetKValue(cmyk) = ((cmyk) As Byte)
|
---|
137 | Const GetYValue(cmyk) = (((cmyk) >> 8) As Byte)
|
---|
138 | Const GetMValue(cmyk) = (((cmyk) >> 16) As Byte)
|
---|
139 | Const GetCValue(cmyk) = (((cmyk) >> 24) As Byte)
|
---|
140 |
|
---|
141 | Const CMYK(c, m, y, k) = (( _
|
---|
142 | ((k) As Byte) Or _
|
---|
143 | ((y) As Byte As Word << 8) Or _
|
---|
144 | ((m) As Byte As DWord << 16) Or _
|
---|
145 | ((c) As Byte As DWord << 24)) As COLORREF)
|
---|
146 |
|
---|
147 | ' ICM Color
|
---|
148 | TypeDef FXPT16DOT16 = Long
|
---|
149 | TypeDef FXPT2DOT30 = Long
|
---|
150 |
|
---|
151 | TypeDef LCSCSTYPE = Long
|
---|
152 | TypeDef LCSGAMUTMATCH = Long
|
---|
153 |
|
---|
154 | Type LOGCOLORSPACEA
|
---|
155 | lcsSignature As DWord
|
---|
156 | lcsVersion As DWord
|
---|
157 | lcsSize As DWord
|
---|
158 | lcsCSType As LCSCSTYPE
|
---|
159 | lcsIntent As LCSGAMUTMATCH
|
---|
160 | lcsEndpoints As CIEXYZTRIPLE
|
---|
161 | lcsGammaRed As DWord
|
---|
162 | lcsGammaGreen As DWord
|
---|
163 | lcsGammaBlue As DWord
|
---|
164 | lcsFilename[MAX_PATH] As SByte
|
---|
165 | End Type
|
---|
166 | Type LOGCOLORSPACEW
|
---|
167 | lcsSignature As DWord
|
---|
168 | lcsVersion As DWord
|
---|
169 | lcsSize As DWord
|
---|
170 | lcsCSType As LCSCSTYPE
|
---|
171 | lcsIntent As LCSGAMUTMATCH
|
---|
172 | lcsEndpoints As CIEXYZTRIPLE
|
---|
173 | lcsGammaRed As DWord
|
---|
174 | lcsGammaGreen As DWord
|
---|
175 | lcsGammaBlue As DWord
|
---|
176 | lcsFilename[ELM(MAX_PATH)] As WCHAR
|
---|
177 | End Type
|
---|
178 | #ifdef UNICODE
|
---|
179 | TypeDef LOGCOLORSPACE = LOGCOLORSPACEW
|
---|
180 | #else
|
---|
181 | TypeDef LOGCOLORSPACE = LOGCOLORSPACEA
|
---|
182 | #endif
|
---|
183 |
|
---|
184 | Type CIEXYZ
|
---|
185 | ciexyzX As FXPT2DOT30
|
---|
186 | ciexyzY As FXPT2DOT30
|
---|
187 | ciexyzZ As FXPT2DOT30
|
---|
188 | End Type
|
---|
189 |
|
---|
190 | Type CIEXYZTRIPLE
|
---|
191 | ciexyzRed As CIEXYZ
|
---|
192 | ciexyzGreen As CIEXYZ
|
---|
193 | ciexyzBlue As CIEXYZ
|
---|
194 | End Type
|
---|
195 |
|
---|
196 | Type LOGPALETTE
|
---|
197 | palVersion As Word
|
---|
198 | palNumEntries As Word
|
---|
199 | palPalEntry[ELM(1)] As PALETTEENTRY
|
---|
200 | End Type
|
---|
201 |
|
---|
202 | ' raster operations
|
---|
203 | Const SRCCOPY = &H00CC0020
|
---|
204 | Const SRCPAINT = &H00EE0086
|
---|
205 | Const SRCAND = &H008800C6
|
---|
206 | Const SRCINVERT = &H00660046
|
---|
207 | Const SRCERASE = &H00440328
|
---|
208 | Const NOTSRCCOPY = &H00330008
|
---|
209 | Const NOTSRCERASE = &H001100A6
|
---|
210 | Const MERGECOPY = &H00C000CA
|
---|
211 | Const MERGEPAINT = &H00BB0226
|
---|
212 | Const PATCOPY = &H00F00021
|
---|
213 | Const PATPAINT = &H00FB0A09
|
---|
214 | Const PATINVERT = &H005A0049
|
---|
215 | Const DSTINVERT = &H00550009
|
---|
216 | Const BLACKNESS = &H00000042
|
---|
217 | Const WHITENESS = &H00FF0062
|
---|
218 |
|
---|
219 |
|
---|
220 | ' Object types
|
---|
221 | Const OBJ_PEN = 1
|
---|
222 | Const OBJ_BRUSH = 2
|
---|
223 | Const OBJ_DC = 3
|
---|
224 | Const OBJ_METADC = 4
|
---|
225 | Const OBJ_PAL = 5
|
---|
226 | Const OBJ_FONT = 6
|
---|
227 | Const OBJ_BITMAP = 7
|
---|
228 | Const OBJ_REGION = 8
|
---|
229 | Const OBJ_METAFILE = 9
|
---|
230 | Const OBJ_MEMDC = 10
|
---|
231 | Const OBJ_EXTPEN = 11
|
---|
232 | Const OBJ_ENHMETADC = 12
|
---|
233 | Const OBJ_ENHMETAFILE = 13
|
---|
234 |
|
---|
235 |
|
---|
236 | ' Bitmap Header Definition
|
---|
237 | Type BITMAP
|
---|
238 | bmType As Long
|
---|
239 | bmWidth As Long
|
---|
240 | bmHeight As Long
|
---|
241 | bmWidthBytes As Long
|
---|
242 | bmPlanes As Word
|
---|
243 | bmBitsPixel As Word
|
---|
244 | bmBits As VoidPtr
|
---|
245 | End Type
|
---|
246 |
|
---|
247 | Type BITMAPCOREHEADER
|
---|
248 | bcSize As DWord
|
---|
249 | bcWidth As Word
|
---|
250 | bcHeight As Word
|
---|
251 | bcPlanes As Word
|
---|
252 | bcBitCount As Word
|
---|
253 | End Type
|
---|
254 |
|
---|
255 | Type BITMAPCOREINFO
|
---|
256 | bmciHeader As BITMAPCOREHEADER
|
---|
257 | bmciColors[ELM(1)] As RGBTRIPLE
|
---|
258 | End Type
|
---|
259 |
|
---|
260 | ' structures for defining DIBs
|
---|
261 | Const BI_RGB = 0
|
---|
262 | Const BI_RLE8 = 1
|
---|
263 | Const BI_RLE4 = 2
|
---|
264 | Const BI_BITFIELDS = 3
|
---|
265 | Const BI_JPEG = 4
|
---|
266 | Const BI_PNG = 5
|
---|
267 |
|
---|
268 | Type BITMAPINFOHEADER
|
---|
269 | biSize As DWord
|
---|
270 | biWidth As Long
|
---|
271 | biHeight As Long
|
---|
272 | biPlanes As Word
|
---|
273 | biBitCount As Word
|
---|
274 | biCompression As DWord
|
---|
275 | biSizeImage As DWord
|
---|
276 | biXPelsPerMeter As Long
|
---|
277 | biYPelsPerMeter As Long
|
---|
278 | biClrUsed As DWord
|
---|
279 | biClrImportant As DWord
|
---|
280 | End Type
|
---|
281 |
|
---|
282 | Type BITMAPINFO
|
---|
283 | bmiHeader As BITMAPINFOHEADER
|
---|
284 | bmiColors[ELM(1)] As RGBQUAD '以前はbmpColors[255] As RGBQUADだったことに注意
|
---|
285 | End Type
|
---|
286 |
|
---|
287 |
|
---|
288 | ' Bitmap file header struct
|
---|
289 | Type Align(2) BITMAPFILEHEADER
|
---|
290 | bfType As Word
|
---|
291 | bfSize As DWord
|
---|
292 | bfReserved1 As Word
|
---|
293 | bfReserved2 As Word
|
---|
294 | bfOffBits As DWord
|
---|
295 | End Type
|
---|
296 |
|
---|
297 | Type BITMAPV4HEADER
|
---|
298 | bV4Size As DWord
|
---|
299 | bV4Width As Long
|
---|
300 | bV4Height As Long
|
---|
301 | bV4Planes As Word
|
---|
302 | bV4BitCount As Word
|
---|
303 | bV4V4Compression As DWord
|
---|
304 | bV4SizeImage As DWord
|
---|
305 | bV4XPelsPerMeter As Long
|
---|
306 | bV4YPelsPerMeter As Long
|
---|
307 | bV4ClrUsed As DWord
|
---|
308 | bV4ClrImportant As DWord
|
---|
309 | bV4RedMask As DWord
|
---|
310 | bV4GreenMask As DWord
|
---|
311 | bV4BlueMask As DWord
|
---|
312 | bV4AlphaMask As DWord
|
---|
313 | bV4CSType As DWord
|
---|
314 | bV4Endpoints As CIEXYZTRIPLE
|
---|
315 | bV4GammaRed As DWord
|
---|
316 | bV4GammaGreen As DWord
|
---|
317 | bV4GammaBlue As DWord
|
---|
318 | End Type
|
---|
319 |
|
---|
320 | ' Region flags
|
---|
321 | Const NULLREGION = 1
|
---|
322 | Const SIMPLEREGION = 2
|
---|
323 | Const COMPLEXREGION = 3
|
---|
324 |
|
---|
325 |
|
---|
326 | ' Poly fill mode
|
---|
327 | Const ALTERNATE = 1
|
---|
328 | Const WINDING = 2
|
---|
329 |
|
---|
330 |
|
---|
331 | ' Device mode
|
---|
332 | Const DM_ORIENTATION = &H00000001
|
---|
333 | Const DM_PAPERSIZE = &H00000002
|
---|
334 | Const DM_PAPERLENGTH = &H00000004
|
---|
335 | Const DM_PAPERWIDTH = &H00000008
|
---|
336 | Const DM_SCALE = &H00000010
|
---|
337 | Const DM_POSITION = &H00000020
|
---|
338 | Const DM_COPIES = &H00000100
|
---|
339 | Const DM_DEFAULTSOURCE = &H00000200
|
---|
340 | Const DM_PRINTQUALITY = &H00000400
|
---|
341 | Const DM_COLOR = &H00000800
|
---|
342 | Const DM_DUPLEX = &H00001000
|
---|
343 | Const DM_YRESOLUTION = &H00002000
|
---|
344 | Const DM_TTOPTION = &H00004000
|
---|
345 | Const DM_COLLATE = &H00008000
|
---|
346 | Const DM_FORMNAME = &H00010000
|
---|
347 | Const DM_LOGPIXELS = &H00020000
|
---|
348 | Const DM_BITSPERPEL = &H00040000
|
---|
349 | Const DM_PELSWIDTH = &H00080000
|
---|
350 | Const DM_PELSHEIGHT = &H00100000
|
---|
351 | Const DM_DISPLAYFLAGS = &H00200000
|
---|
352 | Const DM_DISPLAYFREQUENCY = &H00400000
|
---|
353 | Const DMORIENT_PORTRAIT = 1
|
---|
354 | Const DMORIENT_LANDSCAPE = 2
|
---|
355 | Const DMPAPER_LETTER = 1
|
---|
356 | Const DMPAPER_LETTERSMALL = 2
|
---|
357 | Const DMPAPER_TABLOID = 3
|
---|
358 | Const DMPAPER_LEDGER = 4
|
---|
359 | Const DMPAPER_LEGAL = 5
|
---|
360 | Const DMPAPER_STATEMENT = 6
|
---|
361 | Const DMPAPER_EXECUTIVE = 7
|
---|
362 | Const DMPAPER_A3 = 8
|
---|
363 | Const DMPAPER_A4 = 9
|
---|
364 | Const DMPAPER_A4SMALL = 10
|
---|
365 | Const DMPAPER_A5 = 11
|
---|
366 | Const DMPAPER_B4 = 12
|
---|
367 | Const DMPAPER_B5 = 13
|
---|
368 | Const DMPAPER_FOLIO = 14
|
---|
369 | Const DMPAPER_QUARTO = 15
|
---|
370 | Const DMPAPER_10X14 = 16
|
---|
371 | Const DMPAPER_11X17 = 17
|
---|
372 | Const DMPAPER_NOTE = 18
|
---|
373 | Const DMPAPER_ENV_9 = 19
|
---|
374 | Const DMPAPER_ENV_10 = 20
|
---|
375 | Const DMPAPER_ENV_11 = 21
|
---|
376 | Const DMPAPER_ENV_12 = 22
|
---|
377 | Const DMPAPER_ENV_14 = 23
|
---|
378 | Const DMPAPER_CSHEET = 24
|
---|
379 | Const DMPAPER_DSHEET = 25
|
---|
380 | Const DMPAPER_ESHEET = 26
|
---|
381 | Const DMPAPER_ENV_DL = 27
|
---|
382 | Const DMPAPER_ENV_C5 = 28
|
---|
383 | Const DMPAPER_ENV_C3 = 29
|
---|
384 | Const DMPAPER_ENV_C4 = 30
|
---|
385 | Const DMPAPER_ENV_C6 = 31
|
---|
386 | Const DMPAPER_ENV_C65 = 32
|
---|
387 | Const DMPAPER_ENV_B4 = 33
|
---|
388 | Const DMPAPER_ENV_B5 = 34
|
---|
389 | Const DMPAPER_ENV_B6 = 35
|
---|
390 | Const DMPAPER_ENV_ITALY = 36
|
---|
391 | Const DMPAPER_ENV_MONARCH = 37
|
---|
392 | Const DMPAPER_ENV_PERSONAL = 38
|
---|
393 | Const DMPAPER_FANFOLD_US = 39
|
---|
394 | Const DMPAPER_FANFOLD_STD_GERMAN = 40
|
---|
395 | Const DMPAPER_FANFOLD_LGL_GERMAN = 41
|
---|
396 | Const DMRES_DRAFT = -1
|
---|
397 | Const DMRES_LOW = -2
|
---|
398 | Const DMRES_MEDIUM = -3
|
---|
399 | Const DMRES_HIGH = -4
|
---|
400 | Const DMCOLOR_MONOCHROME = 1
|
---|
401 | Const DMCOLOR_COLOR = 2
|
---|
402 | Const DMDUP_SIMPLEX = 1
|
---|
403 | Const DMDUP_VERTICAL = 2
|
---|
404 | Const DMDUP_HORIZONTAL = 3
|
---|
405 | Const DMTT_BITMAP = 1
|
---|
406 | Const DMTT_DOWNLOAD = 2
|
---|
407 | Const DMTT_SUBDEV = 3
|
---|
408 | Const DMCOLLATE_FALSE = 0
|
---|
409 | Const DMCOLLATE_TRUE = 1
|
---|
410 |
|
---|
411 | Const CCHFORMNAME = 32
|
---|
412 | Type DEVMODEW
|
---|
413 | dmDeviceName[ELM(CCHDEVICENAME)] As WCHAR
|
---|
414 | dmSpecVersion As Word
|
---|
415 | dmDriverVersion As Word
|
---|
416 | dmSize As Word
|
---|
417 | dmDriverExtra As Word
|
---|
418 | dmFields As DWord
|
---|
419 | dmOrientation As Integer
|
---|
420 | dmPaperSize As Integer
|
---|
421 | dmPaperLength As Integer
|
---|
422 | dmPaperWidth As Integer
|
---|
423 | dmScale As Integer
|
---|
424 | dmCopies As Integer
|
---|
425 | dmDefaultSource As Integer
|
---|
426 | dmPrintQuality As Integer
|
---|
427 | dmColor As Integer
|
---|
428 | dmDuplex As Integer
|
---|
429 | dmYResolution As Integer
|
---|
430 | dmTTOption As Integer
|
---|
431 | dmCollate As Integer
|
---|
432 | dmFormName[ELM(CCHFORMNAME)] As WCHAR
|
---|
433 | dmLogPixels As Word
|
---|
434 | dmBitsPerPel As DWord
|
---|
435 | dmPelsWidth As DWord
|
---|
436 | dmPelsHeight As DWord
|
---|
437 | dmDisplayFlags As DWord
|
---|
438 | dmDisplayFrequency As DWord
|
---|
439 | dmICMMethod As DWord
|
---|
440 | dmICMIntent As DWord
|
---|
441 | dmMediaType As DWord
|
---|
442 | dmDitherType As DWord
|
---|
443 | dmReserved1 As DWord
|
---|
444 | dmReserved2 As DWord
|
---|
445 | dmPanningWidth As DWord
|
---|
446 | dmPanningHeight As DWord
|
---|
447 | End Type
|
---|
448 | Type DEVMODEA
|
---|
449 | dmDeviceName[ELM(CCHDEVICENAME)] As SByte
|
---|
450 | dmSpecVersion As Word
|
---|
451 | dmDriverVersion As Word
|
---|
452 | dmSize As Word
|
---|
453 | dmDriverExtra As Word
|
---|
454 | dmFields As DWord
|
---|
455 | dmOrientation As Integer
|
---|
456 | dmPaperSize As Integer
|
---|
457 | dmPaperLength As Integer
|
---|
458 | dmPaperWidth As Integer
|
---|
459 | dmScale As Integer
|
---|
460 | dmCopies As Integer
|
---|
461 | dmDefaultSource As Integer
|
---|
462 | dmPrintQuality As Integer
|
---|
463 | dmColor As Integer
|
---|
464 | dmDuplex As Integer
|
---|
465 | dmYResolution As Integer
|
---|
466 | dmTTOption As Integer
|
---|
467 | dmCollate As Integer
|
---|
468 | dmFormName[ELM(CCHFORMNAME)] As SByte
|
---|
469 | dmLogPixels As Word
|
---|
470 | dmBitsPerPel As DWord
|
---|
471 | dmPelsWidth As DWord
|
---|
472 | dmPelsHeight As DWord
|
---|
473 | dmDisplayFlags As DWord
|
---|
474 | dmDisplayFrequency As DWord
|
---|
475 | dmICMMethod As DWord
|
---|
476 | dmICMIntent As DWord
|
---|
477 | dmMediaType As DWord
|
---|
478 | dmDitherType As DWord
|
---|
479 | dmReserved1 As DWord
|
---|
480 | dmReserved2 As DWord
|
---|
481 | dmPanningWidth As DWord
|
---|
482 | dmPanningHeight As DWord
|
---|
483 | End Type
|
---|
484 | #ifdef UNICODE
|
---|
485 | TypeDef DEVMODE = DEVMODEW
|
---|
486 | #else
|
---|
487 | TypeDef DEVMODE = DEVMODEA
|
---|
488 | #endif
|
---|
489 |
|
---|
490 | ' Binary raster ops
|
---|
491 | Const R2_BLACK = 1
|
---|
492 | Const R2_NOTMERGEPEN = 2
|
---|
493 | Const R2_MASKNOTPEN = 3
|
---|
494 | Const R2_NOTCOPYPEN = 4
|
---|
495 | Const R2_MASKPENNOT = 5
|
---|
496 | Const R2_NOT = 6
|
---|
497 | Const R2_XORPEN = 7
|
---|
498 | Const R2_NOTMASKPEN = 8
|
---|
499 | Const R2_MASKPEN = 9
|
---|
500 | Const R2_NOTXORPEN = 10
|
---|
501 | Const R2_NOP = 11
|
---|
502 | Const R2_MERGENOTPEN = 12
|
---|
503 | Const R2_COPYPEN = 13
|
---|
504 | Const R2_MERGEPENNOT = 14
|
---|
505 | Const R2_MERGEPEN = 15
|
---|
506 | Const R2_WHITE = 16
|
---|
507 |
|
---|
508 |
|
---|
509 | Type RGNDATAHEADER
|
---|
510 | dwSize As DWord
|
---|
511 | iType As DWord
|
---|
512 | nCount As DWord
|
---|
513 | nRgnSize As DWord
|
---|
514 | rcBound As RECT
|
---|
515 | End Type
|
---|
516 | Type RGNDATA
|
---|
517 | rdh As RGNDATAHEADER
|
---|
518 | Buffer As Byte
|
---|
519 | End Type
|
---|
520 |
|
---|
521 | Type PALETTEENTRY
|
---|
522 | peRed As Byte
|
---|
523 | peGreen As Byte
|
---|
524 | peBlue As Byte
|
---|
525 | peFlags As Byte
|
---|
526 | End Type
|
---|
527 |
|
---|
528 | Type DOCINFOW
|
---|
529 | cbSize As Long
|
---|
530 | lpszDocName As LPCWSTR
|
---|
531 | lpszOutput As LPCWSTR
|
---|
532 | lpszDatatype As LPCWSTR
|
---|
533 | fwType As DWord
|
---|
534 | End Type
|
---|
535 | Type DOCINFOA
|
---|
536 | cbSize As Long
|
---|
537 | lpszDocName As LPCSTR
|
---|
538 | lpszOutput As LPCSTR
|
---|
539 | lpszDatatype As LPCSTR
|
---|
540 | fwType As DWord
|
---|
541 | End Type
|
---|
542 | #ifdef UNICODE
|
---|
543 | TypeDef DOCINFO = DOCINFOW
|
---|
544 | #else
|
---|
545 | TypeDef DOCINFO = DOCINFOA
|
---|
546 | #endif
|
---|
547 |
|
---|
548 | '-------------------
|
---|
549 | ' GDI API Functions
|
---|
550 | '-------------------
|
---|
551 |
|
---|
552 | Declare Function AbortPath Lib "gdi32" (hdc As HDC) As BOOL
|
---|
553 | Type BLENDFUNCTION
|
---|
554 | BlendOp As Byte
|
---|
555 | BlendFlags As Byte
|
---|
556 | SourceConstantAlpha As Byte
|
---|
557 | AlphaFormat As Byte
|
---|
558 | End Type
|
---|
559 | Declare Function AlphaBlend Lib "msimg32" (hdcDest As HDC, nXDest As Long, nYDest As Long, nDestWidth As Long, nDestHeight As Long, hdcSrc As HDC, XSrc As Long, YSrc As Long, nSrcWidth As Long, nSrcHeight As Long, ByRef blendfunc As BLENDFUNCTION) As Long
|
---|
560 | Declare Function Arc Lib "gdi32" (hdc As HDC, nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long, nXStartArc As Long, nYStartArc As Long, nXEndArc As Long, nYEndArc As Long) As BOOL
|
---|
561 | Declare Function BeginPath Lib "gdi32" (hdc As HDC) As BOOL
|
---|
562 | Declare Function BitBlt Lib "gdi32" (hdcDest As HDC, nXDest As Long, nYDest As Long, nWidth As Long, nHeight As Long, hdcSrc As HDC, nXSrc As Long, nYSrc As Long, dwRop As DWord) As BOOL
|
---|
563 | Declare Function CancelDC Lib "gdi32" (hdc As HDC) As BOOL
|
---|
564 | Declare Function Chord Lib "gdi32" (hdc As HDC, nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long, nXRadial1 As Long, nYRadial1 As Long, nXRadial2 As Long, nYRadial2 As Long) As BOOL
|
---|
565 | Declare Function CloseEnhMetaFile Lib "gdi32" (hdc As HDC) As HENHMETAFILE
|
---|
566 | Declare Function CloseFigure Lib "gdi32" (hdc As HDC) As BOOL
|
---|
567 | Declare Function CloseMetaFile Lib "gdi32" (hdc As HDC) As HMETAFILE
|
---|
568 |
|
---|
569 | Const RGN_AND = 1
|
---|
570 | Const RGN_OR = 2
|
---|
571 | Const RGN_XOR = 3
|
---|
572 | Const RGN_DIFF = 4
|
---|
573 | Const RGN_COPY = 5
|
---|
574 | Declare Function CombineRgn Lib "gdi32" (hrgnDest As HRGN, hrgnSrc1 As HRGN, hrgnSrc2 As HRGN, fnCombineMode As Long) As Long
|
---|
575 | Declare Function CopyEnhMetaFile Lib "gdi32" Alias _FuncName_CopyEnhMetaFile (hemfSrc As HENHMETAFILE, pszFile As PCTSTR) As HENHMETAFILE
|
---|
576 | Declare Function CopyMetaFile Lib "gdi32" Alias _FuncName_CopyMetaFile (hmfSrc As HMETAFILE, pszFile As PCTSTR) As HMETAFILE
|
---|
577 | Declare Function CreateBitmap Lib "gdi32" (nWidth As Long, nHeight As Long, cPlanes As Long, cBitsPerPel As Long, lpvBits As VoidPtr) As HBITMAP
|
---|
578 | Declare Function CreateBitmapIndirect Lib "gdi32" (ByRef bm As BITMAP) As HBITMAP
|
---|
579 |
|
---|
580 | Const BS_SOLID = 0
|
---|
581 | Const BS_NULL = 1
|
---|
582 | Const BS_HOLLOW = BS_NULL
|
---|
583 | Const BS_HATCHED = 2
|
---|
584 | Const BS_PATTERN = 3
|
---|
585 | Const BS_INDEXED = 4
|
---|
586 | Const BS_DIBPATTERN = 5
|
---|
587 | Const BS_DIBPATTERNPT = 6
|
---|
588 | Const BS_PATTERN8X8 = 7
|
---|
589 | Const BS_DIBPATTERN8X8 = 8
|
---|
590 | Const BS_MONOPATTERN = 9
|
---|
591 | Const DIB_RGB_COLORS = 0
|
---|
592 | Const DIB_PAL_COLORS = 1
|
---|
593 | Const HS_HORIZONTAL = 0
|
---|
594 | Const HS_VERTICAL = 1
|
---|
595 | Const HS_FDIAGONAL = 2
|
---|
596 | Const HS_BDIAGONAL = 3
|
---|
597 | Const HS_CROSS = 4
|
---|
598 | Const HS_DIAGCROSS = 5
|
---|
599 | Type LOGBRUSH
|
---|
600 | lbStyle As Long
|
---|
601 | lbColor As Long
|
---|
602 | lbHatch As Long
|
---|
603 | End Type
|
---|
604 | Declare Function CreateBrushIndirect Lib "gdi32" (ByRef lplb As LOGBRUSH) As HBRUSH
|
---|
605 |
|
---|
606 | Declare Function CreateCompatibleBitmap Lib "gdi32" (hdc As HDC, nWidth As Long, nHeight As Long) As HBITMAP
|
---|
607 | Declare Function CreateCompatibleDC Lib "gdi32" (hdc As HDC) As HDC
|
---|
608 | Declare Function CreateDC Lib "gdi32" Alias _FuncName_CreateDC (pszDriver As PCTSTR, pszDevice As PCTSTR, pszOutput As PCTSTR, ByRef InitData As DEVMODE) As HDC
|
---|
609 |
|
---|
610 | Const CBM_INIT = &H04
|
---|
611 | Declare Function CreateDIBitmap Lib "gdi32" (hdc As HDC, ByRef bmih As BITMAPINFOHEADER, fdwInit As Long, lpbInit As VoidPtr, ByRef bmi As BITMAPINFO, fuUsage As Long) As HBITMAP
|
---|
612 |
|
---|
613 | Declare Function CreateDIBPatternBrushPt Lib "gdi32" (lpPackedDIB As VoidPtr, iUsage As Long) As HBRUSH
|
---|
614 | Declare Function CreateDIBSection Lib "gdi32" (hdc As HDC, ByRef BmpInfo As BITMAPINFO, iUsage As DWord, ppvBits As *VoidPtr, hSection As HANDLE, dwOffset As DWord) As HBITMAP
|
---|
615 | Declare Function CreateEllipticRgn Lib "gdi32" (nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long) As HRGN
|
---|
616 | Declare Function CreateEllipticRgnIndirect Lib "gdi32" (ByRef lpRect As RECT) As HRGN
|
---|
617 | Declare Function CreateEnhMetaFile Lib "gdi32" Alias _FuncName_CreateEnhMetaFile (hdcRef As HDC, pFileName As PCTSTR, ByRef Rect As RECT, pDescription As PCTSTR) As HDC
|
---|
618 | Declare Function CreateMetaFile Lib "gdi32" Alias _FuncName_CreateMetaFile (pFileName As PCTSTR) As HDC
|
---|
619 |
|
---|
620 | Const FW_DONTCARE = 0
|
---|
621 | Const FW_THIN = 100
|
---|
622 | Const FW_EXTRALIGHT = 200
|
---|
623 | Const FW_LIGHT = 300
|
---|
624 | Const FW_NORMAL = 400
|
---|
625 | Const FW_MEDIUM = 500
|
---|
626 | Const FW_SEMIBOLD = 600
|
---|
627 | Const FW_BOLD = 700
|
---|
628 | Const FW_EXTRABOLD = 800
|
---|
629 | Const FW_HEAVY = 900
|
---|
630 | Const FW_ULTRALIGHT = FW_EXTRALIGHT
|
---|
631 | Const FW_REGULAR = FW_NORMAL
|
---|
632 | Const FW_DEMIBOLD = FW_SEMIBOLD
|
---|
633 | Const FW_ULTRABOLD = FW_EXTRABOLD
|
---|
634 | Const FW_BLACK = FW_HEAVY
|
---|
635 |
|
---|
636 | Const ANSI_CHARSET = 0
|
---|
637 | Const DEFAULT_CHARSET = 1
|
---|
638 | Const SYMBOL_CHARSET = 2
|
---|
639 | Const SHIFTJIS_CHARSET = 128
|
---|
640 | Const HANGEUL_CHARSET = 129
|
---|
641 | Const HANGUL_CHARSET = 129
|
---|
642 | Const GB2312_CHARSET = 134
|
---|
643 | Const CHINESEBIG5_CHARSET = 136
|
---|
644 | Const OEM_CHARSET = 255
|
---|
645 | Const JOHAB_CHARSET = 130
|
---|
646 | Const HEBREW_CHARSET = 177
|
---|
647 | Const ARABIC_CHARSET = 178
|
---|
648 | Const GREEK_CHARSET = 161
|
---|
649 | Const TURKISH_CHARSET = 162
|
---|
650 | Const VIETNAMESE_CHARSET = 163
|
---|
651 | Const THAI_CHARSET = 222
|
---|
652 | Const EASTEUROPE_CHARSET = 238
|
---|
653 | Const RUSSIAN_CHARSET = 204
|
---|
654 | Const MAC_CHARSET = 77
|
---|
655 | Const BALTIC_CHARSET = 186
|
---|
656 |
|
---|
657 | Const OUT_DEFAULT_PRECIS = 0
|
---|
658 | Const OUT_STRING_PRECIS = 1
|
---|
659 | Const OUT_CHARACTER_PRECIS = 2
|
---|
660 | Const OUT_STROKE_PRECIS = 3
|
---|
661 | Const OUT_TT_PRECIS = 4
|
---|
662 | Const OUT_DEVICE_PRECIS = 5
|
---|
663 | Const OUT_RASTER_PRECIS = 6
|
---|
664 | Const OUT_TT_ONLY_PRECIS = 7
|
---|
665 | Const OUT_OUTLINE_PRECIS = 8
|
---|
666 | Const OUT_SCREEN_OUTLINE_PRECIS = 9
|
---|
667 |
|
---|
668 | Const CLIP_DEFAULT_PRECIS = 0
|
---|
669 | Const CLIP_CHARACTER_PRECIS = 1
|
---|
670 | Const CLIP_STROKE_PRECIS = 2
|
---|
671 | Const CLIP_MASK = &Hf
|
---|
672 | Const CLIP_LH_ANGLES = &H00010000
|
---|
673 | Const CLIP_TT_ALWAYS = &H00020000
|
---|
674 | Const CLIP_EMBEDDED = &H00080000
|
---|
675 |
|
---|
676 | Const DEFAULT_QUALITY = 0
|
---|
677 | Const DRAFT_QUALITY = 1
|
---|
678 | Const PROOF_QUALITY = 2
|
---|
679 | Const NONANTIALIASED_QUALITY =3
|
---|
680 | Const ANTIALIASED_QUALITY = 4
|
---|
681 |
|
---|
682 | Const DEFAULT_PITCH = 0
|
---|
683 | Const FIXED_PITCH = 1
|
---|
684 | Const VARIABLE_PITCH = 2
|
---|
685 |
|
---|
686 | Const FF_DONTCARE = 0
|
---|
687 | Const FF_ROMAN = &H00010000
|
---|
688 | Const FF_SWISS = &H00020000
|
---|
689 | Const FF_MODERN = &H00030000
|
---|
690 | Const FF_SCRIPT = &H00040000
|
---|
691 | Const FF_DECORATIVE = &H00050000
|
---|
692 | Declare Function CreateFont Lib "gdi32" Alias _FuncName_CreateFont (nHeight As Long, nWidth As Long, nEscapement As Long, nOrientation As Long, fnWeight As Long, fdwItalic As DWord, fdwUnderline As DWord, fdwStrikeOut As DWord, fdwCharSet As DWord, fdwOutputPrecision As DWord, fdwClipPrecision As DWord, fdwQuality As DWord, fdwPitchAndFamily As DWord, lpszFace As PCTSTR) As HFONT
|
---|
693 |
|
---|
694 | Const LF_FACESIZE = 32
|
---|
695 | Type LOGFONTA
|
---|
696 | lfHeight As Long
|
---|
697 | lfWidth As Long
|
---|
698 | lfEscapement As Long
|
---|
699 | lfOrientation As Long
|
---|
700 | lfWeight As Long
|
---|
701 | lfItalic As Byte
|
---|
702 | lfUnderline As Byte
|
---|
703 | lfStrikeOut As Byte
|
---|
704 | lfCharSet As Byte
|
---|
705 | lfOutPrecision As Byte
|
---|
706 | lfClipPrecision As Byte
|
---|
707 | lfQuality As Byte
|
---|
708 | lfPitchAndFamily As Byte
|
---|
709 | lfFaceName[ELM(LF_FACESIZE)] As SByte
|
---|
710 | End Type
|
---|
711 | Type LOGFONTW
|
---|
712 | lfHeight As Long
|
---|
713 | lfWidth As Long
|
---|
714 | lfEscapement As Long
|
---|
715 | lfOrientation As Long
|
---|
716 | lfWeight As Long
|
---|
717 | lfItalic As Byte
|
---|
718 | lfUnderline As Byte
|
---|
719 | lfStrikeOut As Byte
|
---|
720 | lfCharSet As Byte
|
---|
721 | lfOutPrecision As Byte
|
---|
722 | lfClipPrecision As Byte
|
---|
723 | lfQuality As Byte
|
---|
724 | lfPitchAndFamily As Byte
|
---|
725 | lfFaceName[ELM(LF_FACESIZE)] As WCHAR
|
---|
726 | End Type
|
---|
727 | #ifdef UNICODE
|
---|
728 | TypeDef LOGFONT = LOGFONTW
|
---|
729 | #else
|
---|
730 | TypeDef LOGFONT = LOGFONTA
|
---|
731 | #endif
|
---|
732 | Declare Function CreateFontIndirectA Lib "gdi32" (ByRef lf As LOGFONTA) As HFONT
|
---|
733 | Declare Function CreateFontIndirect Lib "gdi32" Alias _FuncName_CreateFontIndirect (ByRef lf As LOGFONT) As HFONT
|
---|
734 |
|
---|
735 | Declare Function CreateHatchBrush Lib "gdi32" (fnStyle As Long, clrref As COLORREF) As HBRUSH
|
---|
736 | Declare Function CreatePatternBrush Lib "gdi32" (hbmp As HBITMAP) As HBRUSH
|
---|
737 |
|
---|
738 | Const PS_SOLID = 0
|
---|
739 | Const PS_DASH = 1
|
---|
740 | Const PS_DOT = 2
|
---|
741 | Const PS_DASHDOT = 3
|
---|
742 | Const PS_DASHDOTDOT = 4
|
---|
743 | Const PS_NULL = 5
|
---|
744 | Const PS_INSIDEFRAME = 6
|
---|
745 | Const PS_USERSTYLE = 7
|
---|
746 | Const PS_ALTERNATE = 8
|
---|
747 | Declare Function CreatePen Lib "gdi32" (nPenStyle As Long, nWidth As Long, crColor As COLORREF) As HPEN
|
---|
748 |
|
---|
749 | Type LOGPEN
|
---|
750 | lopnStyle As DWord
|
---|
751 | lopnWidth As POINTAPI
|
---|
752 | lopnColor As COLORREF
|
---|
753 | End Type
|
---|
754 | Declare Function CreatePenIndirect Lib "gdi32" (ByRef lplgpn As LOGPEN) As HPEN
|
---|
755 |
|
---|
756 | Declare Function CreatePolygonRgn Lib "gdi32" (ByRef lpPoints As POINTAPI, cPoints As Long, fnPolyFillMode As Long) As HRGN
|
---|
757 | Declare Function CreateRectRgn Lib "gdi32" (nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long) As HRGN
|
---|
758 | Declare Function CreateRectRgnIndirect Lib "gdi32" (ByRef lpRect As RECT) As HRGN
|
---|
759 | Declare Function CreateRoundRectRgn Lib "gdi32" (nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long, nWidthEllipse As Long, nHeightEllipse As Long) As HRGN
|
---|
760 | Declare Function CreateSolidBrush Lib "gdi32" (crColor As COLORREF) As HBRUSH
|
---|
761 | Declare Function DeleteDC Lib "gdi32" (hdc As HDC) As BOOL
|
---|
762 | Declare Function DeleteEnhMetaFile Lib "gdi32" (hemf As HENHMETAFILE) As BOOL
|
---|
763 | Declare Function DeleteMetaFile Lib "gdi32" (hmf As HMETAFILE) As BOOL
|
---|
764 | Declare Function DeleteObject Lib "gdi32" (hObject As HANDLE) As BOOL
|
---|
765 | Declare Function DPtoLP Lib "gdi32" (hdc As HDC, ByRef lpPoints As POINTAPI, nCount As Long) As BOOL
|
---|
766 | Declare Function Ellipse Lib "gdi32" (hdc As HDC, nLeftRect As Long, nTopRect As Long, RightRect As Long, nBottomRect As Long) As BOOL
|
---|
767 | Declare Function EndDoc Lib "gdi32" (hdc As HDC) As Long
|
---|
768 | Declare Function EndPage Lib "gdi32" (hdc As HDC) As Long
|
---|
769 | Declare Function EndPath Lib "gdi32" (hdc As HDC) As BOOL
|
---|
770 | Declare Function EnumEnhMetaFile Lib "gdi32" (hdc As HDC, hemf As HENHMETAFILE, pEnhMetaFunc As ENHMFENUMPROC, pData As VoidPtr, ByRef Rect As RECT) As BOOL
|
---|
771 | Declare Function EnumMetaFile Lib "gdi32" (hdc As HDC, hmf As HMETAFILE, pMetaFunc As MFENUMPROC, lParam As LPARAM) As BOOL
|
---|
772 | Declare Function EqualRgn Lib "gdi32" (hSrcRgn1 As HRGN, hSrcRgn2 As HRGN) As BOOL
|
---|
773 | Declare Function ExcludeClipRect Lib "gdi32" (hdc As HDC, nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long) As Long
|
---|
774 |
|
---|
775 | Const FLOODFILLBORDER = 0
|
---|
776 | Const FLOODFILLSURFACE = 1
|
---|
777 | Declare Function ExtFloodFill Lib "gdi32" (hdc As HDC, nXStart As Long, nYStart As Long, crColor As COLORREF, fuFillType As DWord) As BOOL
|
---|
778 |
|
---|
779 | Const PS_COSMETIC = &H00000000
|
---|
780 | Const PS_GEOMETRIC = &H00010000
|
---|
781 | Const PS_ENDCAP_ROUND = &H00000000
|
---|
782 | Const PS_ENDCAP_SQUARE = &H00000100
|
---|
783 | Const PS_ENDCAP_FLAT = &H00000200
|
---|
784 | Const PS_JOIN_ROUND = &H00000000
|
---|
785 | Const PS_JOIN_BEVEL = &H00001000
|
---|
786 | Const PS_JOIN_MITER = &H00002000
|
---|
787 | Declare Function ExtCreatePen Lib "gdi32" (dwPenStyle As DWord, dwWidth As DWord, ByRef lplb As LOGBRUSH, dwStyleCount As DWord, lpStyle As *DWord) As HPEN
|
---|
788 |
|
---|
789 | Declare Function ExtSelectClipRgn Lib "gdi32" (hdc As HDC, hRgn As HRGN, fnMode As Long) As Long
|
---|
790 | Declare Function ExtTextOutA Lib "gdi32" (hdc As HDC, x As Long, y As Long, fuOptions As DWord, ByRef rc As RECT, lpString As PCSTR, cbCount As Long, pDx As *Long) As Long
|
---|
791 | Declare Function ExtTextOutW Lib "gdi32" (hdc As HDC, x As Long, y As Long, fuOptions As DWord, ByRef rc As RECT, lpString As PCWSTR, cbCount As Long, pDx As *Long) As Long
|
---|
792 | #ifdef UNICODE
|
---|
793 | Declare Function ExtTextOut Lib "gdi32" Alias "ExtTextOutW" (hdc As HDC, x As Long, y As Long, fuOptions As DWord, ByRef rc As RECT, pString As PCWSTR, cbCount As Long, pDx As *Long) As Long
|
---|
794 | #else
|
---|
795 | Declare Function ExtTextOut Lib "gdi32" Alias "ExtTextOutA" (hdc As HDC, x As Long, y As Long, fuOptions As DWord, ByRef rc As RECT, pString As PCSTR, cbCount As Long, pDx As *Long) As Long
|
---|
796 | #endif
|
---|
797 | Declare Function FillPath Lib "gdi32" (hdc As HDC) As Long
|
---|
798 | Declare Function FillRgn Lib "gdi32" (hdc As HDC, hRgn As HRGN, hBrush As HBRUSH) As Long
|
---|
799 | Declare Function FrameRgn Lib "gdi32" (hdc As HDC, hRgn As HRGN, hBrush As HBRUSH, nWidth As Long, nHeight As Long) As Long
|
---|
800 | Declare Function GdiComment Lib "gdi32" (hdc As HDC, cbSize As DWord, lpData As *Byte) As BOOL
|
---|
801 | Declare Function GetBitmapBits Lib "gdi32" (hbmp As HBITMAP, cbBuffer As Long, lpvBits As VoidPtr) As Long
|
---|
802 | Declare Function GetBkColor Lib "gdi32" (hdc As HDC) As DWord
|
---|
803 | Declare Function GetBkMode Lib "gdi32" (hdc As HDC) As Long
|
---|
804 | Declare Function GetBrushOrgEx Lib "gdi32" (hdc As HDC, ByRef lppt As POINTAPI) As Long
|
---|
805 | ' only WinNT
|
---|
806 | 'Declare Function GetCharWidth32 Lib "gdi32" Alias "GetCharWidth32A" (hdc As HDC, iFirstChar As DWord, iLastChar As DWord, pBuffer As *DWord) As Long
|
---|
807 | Declare Function GetClipBox Lib "gdi32" (hdc As HDC, ByRef lpRect As RECT) As Long
|
---|
808 | Declare Function GetClipRgn Lib "gdi32" (hdc As HDC, hRgn As HRGN) As Long
|
---|
809 | Declare Function GetCurrentObject Lib "gdi32" (hdc As HDC, dwObjectType As DWord) As HANDLE
|
---|
810 | Declare Function GetCurrentPositionEx Lib "gdi32" (hdc As HDC, ByRef Point As POINTAPI) As Long
|
---|
811 |
|
---|
812 | Const DRIVERVERSION = 0
|
---|
813 | Const TECHNOLOGY = 2
|
---|
814 | Const HORZSIZE = 4
|
---|
815 | Const VERTSIZE = 6
|
---|
816 | Const HORZRES = 8
|
---|
817 | Const VERTRES = 10
|
---|
818 | Const BITSPIXEL = 12
|
---|
819 | Const PLANES = 14
|
---|
820 | Const NUMBRUSHES = 16
|
---|
821 | Const NUMPENS = 18
|
---|
822 | Const NUMMARKERS = 20
|
---|
823 | Const NUMFONTS = 22
|
---|
824 | Const NUMCOLORS = 24
|
---|
825 | Const PDEVICESIZE = 26
|
---|
826 | Const CURVECAPS = 28
|
---|
827 | Const LINECAPS = 30
|
---|
828 | Const POLYGONALCAPS = 32
|
---|
829 | Const TEXTCAPS = 34
|
---|
830 | Const CLIPCAPS = 36
|
---|
831 | Const RASTERCAPS = 38
|
---|
832 | Const ASPECTX = 40
|
---|
833 | Const ASPECTY = 42
|
---|
834 | Const ASPECTXY = 44
|
---|
835 | Const SHADEBLENDCAPS = 45
|
---|
836 | Const LOGPIXELSX = 88
|
---|
837 | Const LOGPIXELSY = 90
|
---|
838 | Const SIZEPALETTE = 104
|
---|
839 | Const NUMRESERVED = 106
|
---|
840 | Const COLORRES = 108
|
---|
841 | Const PHYSICALWIDTH = 110
|
---|
842 | Const PHYSICALHEIGHT = 111
|
---|
843 | Const PHYSICALOFFSETX = 112
|
---|
844 | Const PHYSICALOFFSETY = 113
|
---|
845 | Const SCALINGFACTORX = 114
|
---|
846 | Const SCALINGFACTORY = 115
|
---|
847 | Const VREFRESH = 116
|
---|
848 | Const DESKTOPVERTRES = 117
|
---|
849 | Const DESKTOPHORZRES = 118
|
---|
850 | Const BLTALIGNMENT = 119
|
---|
851 | Const DT_PLOTTER = 0 ' Device Technologies
|
---|
852 | Const DT_RASDISPLAY = 1
|
---|
853 | Const DT_RASPRINTER = 2
|
---|
854 | Const DT_RASCAMERA = 3
|
---|
855 | Const DT_CHARSTREAM = 4
|
---|
856 | Const DT_METAFILE = 5
|
---|
857 | Const DT_DISPFILE = 6
|
---|
858 | Const CC_NONE = 0 ' Curve Capabilities
|
---|
859 | Const CC_CIRCLES = 1
|
---|
860 | Const CC_PIE = 2
|
---|
861 | Const CC_CHORD = 4
|
---|
862 | Const CC_ELLIPSES = 8
|
---|
863 | Const CC_WIDE = 16
|
---|
864 | Const CC_STYLED = 32
|
---|
865 | Const CC_WIDESTYLED = 64
|
---|
866 | Const CC_INTERIORS = 128
|
---|
867 | Const CC_ROUNDRECT = 256
|
---|
868 | Const LC_NONE = 0 ' Line Capabilities
|
---|
869 | Const LC_POLYLINE = 2
|
---|
870 | Const LC_MARKER = 4
|
---|
871 | Const LC_POLYMARKER = 8
|
---|
872 | Const LC_WIDE = 16
|
---|
873 | Const LC_STYLED = 32
|
---|
874 | Const LC_WIDESTYLED = 64
|
---|
875 | Const LC_INTERIORS = 128
|
---|
876 | Const PC_NONE = 0 ' Polygonal Capabilities
|
---|
877 | Const PC_POLYGON = 1
|
---|
878 | Const PC_RECTANGLE = 2
|
---|
879 | Const PC_WINDPOLYGON = 4
|
---|
880 | Const PC_TRAPEZOID = 4
|
---|
881 | Const PC_SCANLINE = 8
|
---|
882 | Const PC_WIDE = 16
|
---|
883 | Const PC_STYLED = 32
|
---|
884 | Const PC_WIDESTYLED = 64
|
---|
885 | Const PC_INTERIORS = 128
|
---|
886 | Const PC_POLYPOLYGON = 256
|
---|
887 | Const PC_PATHS = 512
|
---|
888 | Const CP_NONE = 0 ' Clipping Capabilities
|
---|
889 | Const CP_RECTANGLE = 1
|
---|
890 | Const CP_REGION = 2
|
---|
891 | Const TC_OP_CHARACTER = &H00000001 ' Text Capabilities
|
---|
892 | Const TC_OP_STROKE = &H00000002
|
---|
893 | Const TC_CP_STROKE = &H00000004
|
---|
894 | Const TC_CR_90 = &H00000008
|
---|
895 | Const TC_CR_ANY = &H00000010
|
---|
896 | Const TC_SF_X_YINDEP = &H00000020
|
---|
897 | Const TC_SA_DOUBLE = &H00000040
|
---|
898 | Const TC_SA_INTEGER = &H00000080
|
---|
899 | Const TC_SA_CONTIN = &H00000100
|
---|
900 | Const TC_EA_DOUBLE = &H00000200
|
---|
901 | Const TC_IA_ABLE = &H00000400
|
---|
902 | Const TC_UA_ABLE = &H00000800
|
---|
903 | Const TC_SO_ABLE = &H00001000
|
---|
904 | Const TC_RA_ABLE = &H00002000
|
---|
905 | Const TC_VA_ABLE = &H00004000
|
---|
906 | Const TC_RESERVED = &H00008000
|
---|
907 | Const TC_SCROLLBLT = &H00010000
|
---|
908 | Const RC_BITBLT = 1 ' Raster Capabilities
|
---|
909 | Const RC_BANDING = 2
|
---|
910 | Const RC_SCALING = 4
|
---|
911 | Const RC_BITMAP64 = 8
|
---|
912 | Const RC_GDI20_OUTPUT = &H0010
|
---|
913 | Const RC_GDI20_STATE = &H0020
|
---|
914 | Const RC_SAVEBITMAP = &H0040
|
---|
915 | Const RC_DI_BITMAP = &H0080
|
---|
916 | Const RC_PALETTE = &H0100
|
---|
917 | Const RC_DIBTODEV = &H0200
|
---|
918 | Const RC_BIGFONT = &H0400
|
---|
919 | Const RC_STRETCHBLT = &H0800
|
---|
920 | Const RC_FLOODFILL = &H1000
|
---|
921 | Const RC_STRETCHDIB = &H2000
|
---|
922 | Const RC_OP_DX_OUTPUT = &H4000
|
---|
923 | Const RC_DEVBITS = &H8000
|
---|
924 | Const SB_NONE = &H00000000 ' Shading and blending caps
|
---|
925 | Const SB_CONST_ALPHA = &H00000001
|
---|
926 | Const SB_PIXEL_ALPHA = &H00000002
|
---|
927 | Const SB_PREMULT_ALPHA = &H00000004
|
---|
928 | Const SB_GRAD_RECT = &H00000010
|
---|
929 | Declare Function GetDeviceCaps Lib "gdi32" (hdc As HDC, nIndex As Long) As Long
|
---|
930 |
|
---|
931 | Declare Function GetDIBits Lib "gdi32" (hdc As HDC, hbmp As HBITMAP, uStartScan As DWord, cScanLines As DWord, lpvBits As VoidPtr, ByRef lpbi As BITMAPINFO, uUsage As DWord) As Long
|
---|
932 | Declare Function GetEnhMetaFile Lib "gdi32" Alias _FuncName_GetEnhMetaFile (pszMetaFile As PCTSTR) As HENHMETAFILE
|
---|
933 | Declare Function GetEnhMetaFileBits Lib "gdi32" (hemf As HENHMETAFILE, cbBuffer As DWord, pbBuffer As *Byte) As DWord
|
---|
934 | Declare Function GetEnhMetaFileDescription Lib "gdi32" Alias _FuncName_GetEnhMetaFileDescription (hemf As HENHMETAFILE, cbBuffer As DWord, pszDescription As PTSTR) As DWord
|
---|
935 | Declare Function GetEnhMetaFileHeader Lib "gdi32" (hemf As HENHMETAFILE, cbBuffer As DWord, ByRef emh As ENHMETAHEADER) As DWord
|
---|
936 | Declare Function GetEnhMetaFilePaletteEntries Lib "gdi32" (hemf As HENHMETAFILE, cEntries As DWord, ByRef pe As PALETTEENTRY) As DWord
|
---|
937 |
|
---|
938 | Const MM_TEXT = 1
|
---|
939 | Const MM_LOMETRIC = 2
|
---|
940 | Const MM_HIMETRIC = 3
|
---|
941 | Const MM_LOENGLISH = 4
|
---|
942 | Const MM_HIENGLISH = 5
|
---|
943 | Const MM_TWIPS = 6
|
---|
944 | Const MM_ISOTROPIC = 7
|
---|
945 | Const MM_ANISOTROPIC = 8
|
---|
946 | Declare Function GetMapMode Lib "gdi32" (hdc As HDC) As Long
|
---|
947 | Declare Function GetMetaFileBitsEx Lib "gdi32" (hmf As HMETAFILE, nSize As DWord, pvData As VoidPtr) As DWord
|
---|
948 | Declare Function GetMiterLimit Lib "gdi32" (hdc As HDC, peLimit As SinglePtr) As Long
|
---|
949 | Declare Function GetObject Lib "gdi32" Alias _FuncName_GetObject (hgdiobj As HANDLE, cbBuffer As Long, ByRef pvObject As Any) As Long
|
---|
950 | Declare Function GetObjectType Lib "gdi32" (hObject As HANDLE) As Long
|
---|
951 |
|
---|
952 | Const PT_CLOSEFIGURE = &H01
|
---|
953 | Const PT_LINETO = &H02
|
---|
954 | Const PT_BEZIERTO = &H04
|
---|
955 | Const PT_MOVETO = &H06
|
---|
956 | Declare Function GetPath Lib "gdi32" (hdc As HDC, ByRef lpPoints As POINTAPI, lpTypes As BytePtr, nSize As Long) As Long
|
---|
957 |
|
---|
958 | Declare Function GetPixel Lib "gdi32" (hdc As HDC, x As Long, y As Long) As DWord
|
---|
959 | Declare Function GetPolyFillMode Lib "gdi32" (hdc As HDC) As Long
|
---|
960 | Declare Function GetRgnBox Lib "gdi32" (hRgn As HRGN, ByRef lpRect As RECT) As Long
|
---|
961 | Declare Function GetROP2 Lib "gdi32" (hdc As HDC) As Long
|
---|
962 |
|
---|
963 | Const WHITE_BRUSH = 0
|
---|
964 | Const LTGRAY_BRUSH = 1
|
---|
965 | Const GRAY_BRUSH = 2
|
---|
966 | Const DKGRAY_BRUSH = 3
|
---|
967 | Const BLACK_BRUSH = 4
|
---|
968 | Const NULL_BRUSH = 5
|
---|
969 | Const HOLLOW_BRUSH = NULL_BRUSH
|
---|
970 | Const WHITE_PEN = 6
|
---|
971 | Const BLACK_PEN = 7
|
---|
972 | Const NULL_PEN = 8
|
---|
973 | Const OEM_FIXED_FONT = 10
|
---|
974 | Const ANSI_FIXED_FONT = 11
|
---|
975 | Const ANSI_VAR_FONT = 12
|
---|
976 | Const SYSTEM_FONT = 13
|
---|
977 | Const DEVICE_DEFAULT_FONT = 14
|
---|
978 | Const DEFAULT_PALETTE = 15
|
---|
979 | Const SYSTEM_FIXED_FONT = 16
|
---|
980 | Declare Function GetStockObject Lib "gdi32" (fnObject As Long) As HANDLE
|
---|
981 |
|
---|
982 | Declare Function GetStretchBltMode Lib "gdi32" (hdc As HDC) As Long
|
---|
983 |
|
---|
984 | Const TA_NOUPDATECP = 0
|
---|
985 | Const TA_UPDATECP = 1
|
---|
986 | Const TA_LEFT = 0
|
---|
987 | Const TA_RIGHT = 2
|
---|
988 | Const TA_CENTER = 6
|
---|
989 | Const TA_TOP = 0
|
---|
990 | Const TA_BOTTOM = 8
|
---|
991 | Const TA_BASELINE = 24
|
---|
992 | Const TA_RTLREADING = 256
|
---|
993 | Declare Function GetTextAlign Lib "gdi32" (hdc As HDC) As DWord
|
---|
994 |
|
---|
995 | Declare Function GetTextColor Lib "gdi32" (hdc As HDC) As DWord
|
---|
996 | Declare Function GetTextExtentPoint32A Lib "gdi32" (hdc As HDC, pString As PCSTR, cbString As Long, ByRef Size As SIZE) As Long
|
---|
997 | Declare Function GetTextExtentPoint32W Lib "gdi32" (hdc As HDC, pString As PCWSTR, cbString As Long, ByRef Size As SIZE) As Long
|
---|
998 | #ifdef UNICODE
|
---|
999 | Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32W" (hdc As HDC, pString As PCWSTR, cbString As Long, ByRef Size As SIZE) As Long
|
---|
1000 | #else
|
---|
1001 | Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32A" (hdc As HDC, pString As PCSTR, cbString As Long, ByRef Size As SIZE) As Long
|
---|
1002 | #endif
|
---|
1003 | Declare Function GetTextFace Lib "gdi32" Alias _FuncName_GetTextFace (hdc As HDC, nCount As Long, lpFacename As LPTSTR)As Long
|
---|
1004 |
|
---|
1005 | Const TMPF_FIXED_PITCH = &H01
|
---|
1006 | Const TMPF_VECTOR = &H02
|
---|
1007 | Const TMPF_DEVICE = &H08
|
---|
1008 | Const TMPF_TRUETYPE = &H04
|
---|
1009 | Type TEXTMETRICW
|
---|
1010 | tmHeight As Long
|
---|
1011 | tmAscent As Long
|
---|
1012 | tmDescent As Long
|
---|
1013 | tmInternalLeading As Long
|
---|
1014 | tmExternalLeading As Long
|
---|
1015 | tmAveCharWidth As Long
|
---|
1016 | tmMaxCharWidth As Long
|
---|
1017 | tmWeight As Long
|
---|
1018 | tmOverhang As Long
|
---|
1019 | tmDigitizedAspectX As Long
|
---|
1020 | tmDigitizedAspectY As Long
|
---|
1021 | tmFirstChar As WCHAR
|
---|
1022 | tmLastChar As WCHAR
|
---|
1023 | tmDefaultChar As WCHAR
|
---|
1024 | tmBreakChar As WCHAR
|
---|
1025 | tmItalic As Byte
|
---|
1026 | tmUnderlined As Byte
|
---|
1027 | tmStruckOut As Byte
|
---|
1028 | tmPitchAndFamily As Byte
|
---|
1029 | tmCharSet As Byte
|
---|
1030 | End Type
|
---|
1031 | Type TEXTMETRICA
|
---|
1032 | tmHeight As Long
|
---|
1033 | tmAscent As Long
|
---|
1034 | tmDescent As Long
|
---|
1035 | tmInternalLeading As Long
|
---|
1036 | tmExternalLeading As Long
|
---|
1037 | tmAveCharWidth As Long
|
---|
1038 | tmMaxCharWidth As Long
|
---|
1039 | tmWeight As Long
|
---|
1040 | tmOverhang As Long
|
---|
1041 | tmDigitizedAspectX As Long
|
---|
1042 | tmDigitizedAspectY As Long
|
---|
1043 | tmFirstChar As SByte
|
---|
1044 | tmLastChar As SByte
|
---|
1045 | tmDefaultChar As SByte
|
---|
1046 | tmBreakChar As SByte
|
---|
1047 | tmItalic As Byte
|
---|
1048 | tmUnderlined As Byte
|
---|
1049 | tmStruckOut As Byte
|
---|
1050 | tmPitchAndFamily As Byte
|
---|
1051 | tmCharSet As Byte
|
---|
1052 | End Type
|
---|
1053 | #ifdef UNICODE
|
---|
1054 | TypeDef TEXTMETRIC = TEXTMETRICW
|
---|
1055 | #else
|
---|
1056 | TypeDef TEXTMETRIC = TEXTMETRICA
|
---|
1057 | #endif
|
---|
1058 | Declare Function GetTextMetrics Lib "gdi32" Alias _FuncName_GetTextMetrics (hdc As HDC, ByRef tm As TEXTMETRIC) As Long
|
---|
1059 |
|
---|
1060 | Declare Function GetViewportExtEx Lib "gdi32" (hdc As HDC, ByRef lpSize As SIZE) As Long
|
---|
1061 | Declare Function GetViewportOrgEx Lib "gdi32" (hdc As HDC, ByRef lpPoint As POINTAPI) As Long
|
---|
1062 | Declare Function GetWindowExtEx Lib "gdi32" (hdc As HDC, ByRef lpSize As SIZE) As Long
|
---|
1063 | Declare Function GetWindowOrgEx Lib "gdi32" (hdc As HDC, ByRef lpPoint As POINTAPI) As Long
|
---|
1064 | Declare Function GetWinMetaFileBits Lib "gdi32" (hemf As HENHMETAFILE, cbBuffer As DWord, pbBuffer As *Byte, fnMapMode As Long, hdcRef As HDC) As DWord
|
---|
1065 | Declare Function IntersectClipRect Lib "gdi32" (hdc As HDC, nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long) As Long
|
---|
1066 | Declare Function InvertRgn Lib "gdi32" (hdc As HDC, hRgn As HRGN) As Long
|
---|
1067 | Declare Function LineTo Lib "gdi32" (hdc As HDC, nXEnd As Long, nYEnd As Long) As Long
|
---|
1068 | Declare Function LPtoDP Lib "gdi32" (hdc As HDC, ByRef lpPoints As POINTAPI, nCount As Long) As Long
|
---|
1069 | Declare Function MoveToEx Lib "gdi32" (hdc As HDC, x As Long, y As Long, ByRef lpPoint As POINTAPI) As Long
|
---|
1070 | Declare Function OffsetRgn Lib "gdi32" (hRgn As HRGN, nXOffset As Long, nYOffset As Long) As Long
|
---|
1071 | Declare Function OffsetClipRgn Lib "gdi32" (hdc As HDC, nXOffset As Long, nYOffset As Long) As Long
|
---|
1072 | Declare Function OffsetViewportOrgEx Lib "gdi32" (hdc As HDC, nXOffset As Long, nYOffset As Long, ByRef lpPoint As POINTAPI) As Long
|
---|
1073 | Declare Function OffsetWindowOrgEx Lib "gdi32" (hdc As HDC, nXOffset As Long, nYOffset As Long, ByRef lpPoint As POINTAPI) As Long
|
---|
1074 | Declare Function PaintRgn Lib "gdi32" (hdc As HDC, hRgn As HRGN) As Long
|
---|
1075 | Declare Function PatBlt Lib "gdi32" (hdc As HDC, nXLeft As Long, nYLeft As Long, nWidth As Long, nHeight As Long, dwRop As DWord) As Long
|
---|
1076 | Declare Function PathToRegion Lib "gdi32" (hdc As HDC) As HRGN
|
---|
1077 | Declare Function Pie Lib "gdi32" (hdc As HDC, nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long, nXRadial1 As Long, nYRadial1 As Long, nXRadial2 As Long, nYRadial2 As Long) As Long
|
---|
1078 | Declare Function PlayEnhMetaFile Lib "gdi32" (hdc As HDC, hemf As HENHMETAFILE, ByRef Rect As RECT) As Long
|
---|
1079 | Declare Function PlayEnhMetaFileRecord Lib "gdi32" (hdc As HDC, ByRef Handletable As HANDLETABLE, ByRef EnhMetaRecord As ENHMETARECORD, nHandles As DWord) As BOOL
|
---|
1080 | Declare Function PlayMetaFile Lib "gdi32" (hdc As HDC, hmf As HMETAFILE) As BOOL
|
---|
1081 | Declare Function PlayMetaFileRecord Lib "gdi32" (hdc As HDC, ByRef Handletable As HANDLETABLE, ByRef MetaRecord As METARECORD, nHandles As DWord) As BOOL
|
---|
1082 | Declare Function PlgBlt Lib "gdi32" (hdcDest As HDC, ByRef lpPoint As POINTAPI, hdcSrc As HDC, nXSrc As Long, nYSrc As Long, nWidth As Long, nHeight As Long, hbmMask As HBITMAP, xMask As Long, yMask As Long) As Long
|
---|
1083 | Declare Function PolyBezier Lib "gdi32" (hdc As HDC, ByRef lppt As POINTAPI, cPoints As Long) As Long
|
---|
1084 | Declare Function PolyBezierTo Lib "gdi32" (hdc As HDC, ByRef lppt As POINTAPI, cPoints As Long) As Long
|
---|
1085 | Declare Function Polygon Lib "gdi32" (hdc As HDC, ByRef lpPoints As POINTAPI, cPoints As Long) As Long
|
---|
1086 | Declare Function Polyline Lib "gdi32" (hdc As HDC, ByRef lppt As POINTAPI, cPoints As Long) As Long
|
---|
1087 | Declare Function PolylineTo Lib "gdi32" (hdc As HDC, ByRef lppt As POINTAPI, cPoints As Long) As Long
|
---|
1088 | Declare Function PtInRegion Lib "gdi32" (hRgn As HRGN, x As Long, y As Long) As Long
|
---|
1089 | Declare Function PtVisible Lib "gdi32" (hdc As HDC, x As Long, y As Long) As Long
|
---|
1090 | Declare Function RealizePalette Lib "gdi32" (hdc As HDC) As Long
|
---|
1091 | Declare Function Rectangle Lib "gdi32" (hdc As HDC, nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long) As Long
|
---|
1092 | Declare Function RectInRegion Lib "gdi32" (hRgn As HRGN, ByRef lpRect As RECT) As Long
|
---|
1093 | Declare Function RectVisible Lib "gdi32" (hdc As HDC, ByRef lpRect As RECT) As Long
|
---|
1094 | Declare Function ResetDC Lib "gdi32" Alias _FuncName_ResetDC (hdc As HDC, ByRef InitData As DEVMODE) As HDC
|
---|
1095 | Declare Function RestoreDC Lib "gdi32" (hdc As HDC, nSavedDC As Long) As Long
|
---|
1096 | Declare Function RoundRect Lib "gdi32" (hdc As HDC, nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long, nWidth As Long, nHeight As Long) As Long
|
---|
1097 | Declare Function SaveDC Lib "gdi32" (hdc As HDC) As Long
|
---|
1098 | Declare Function ScaleViewportExtEx Lib "gdi32" (hdc As HDC, Xnum As Long, Xdenom As Long, Ynum As Long, Ydenom As Long, ByRef lpSize As SIZE) As Long
|
---|
1099 | Declare Function ScaleWindowExtEx Lib "gdi32" (hdc As HDC, Xnum As Long, Xdenom As Long, Ynum As Long, Ydenom As Long, ByRef lpSize As SIZE) As Long
|
---|
1100 | Declare Function SelectClipPath Lib "gdi32" (hdc As HDC, iMode As Long) As Long
|
---|
1101 | Declare Function SelectClipRgn Lib "gdi32" (hdc As HDC, hRgn As HRGN) As Long
|
---|
1102 | Declare Function SelectObject Lib "gdi32" (hdc As HDC, hObject As HANDLE) As HANDLE
|
---|
1103 | Declare Function SelectPalette Lib "gdi32" (hdc As HDC, hpal As HPALETTE, bForceBackground As BOOL) As HPALETTE
|
---|
1104 | Declare Function SetBkColor Lib "gdi32" (hdc As HDC, crColor As DWord) As DWord
|
---|
1105 |
|
---|
1106 | Const TRANSPARENT = 1
|
---|
1107 | Const OPAQUE = 2
|
---|
1108 | Declare Function SetBkMode Lib "gdi32" (hdc As HDC, iBkMode As Long) As Long
|
---|
1109 |
|
---|
1110 | Declare Function SetBrushOrgEx Lib "gdi32" (hdc As HDC, nXOrg As Long, nYOrg As Long, ByRef lppt As POINTAPI) As Long
|
---|
1111 | Declare Function SetDIBits Lib "gdi32" (hdc As HDC, hbmp As HBITMAP, uStartScan As DWord, cScanLines As DWord, lpvBits As VoidPtr, ByRef lpbmi As BITMAPINFO, fuColorUse As DWord) As Long
|
---|
1112 | Declare Function SetEnhMetaFileBits Lib "gdi32" (cbBuffer As DWord, pData As *Byte) As HENHMETAFILE
|
---|
1113 | Declare Function SetMapMode Lib "gdi32" (hdc As HDC, fnMapMode As Long) As Long
|
---|
1114 | Declare Function SetMetaFileBitsEx Lib "gdi32" (nSize As DWord, pData As *Byte) As HMETAFILE
|
---|
1115 | Declare Function SetMiterLimit Lib "gdi32" (hdc As HDC, eNewLimit As Single, peOldLimit As SinglePtr) As Long
|
---|
1116 | Declare Function SetPixel Lib "gdi32" (hdc As HDC, x As Long, y As Long, crColor As DWord) As DWord
|
---|
1117 | Declare Function SetPolyFillMode Lib "gdi32" (hdc As HDC, iPolyFillMode As Long) As Long
|
---|
1118 | Declare Function SetRectRgn Lib "gdi32" (hRgn As HRGN, nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long) As Long
|
---|
1119 | Declare Function SetROP2 Lib "gdi32" (hdc As HDC, fnDrawMode As Long) As Long
|
---|
1120 |
|
---|
1121 | Const BLACKONWHITE = 1
|
---|
1122 | Const WHITEONBLACK = 2
|
---|
1123 | Const COLORONCOLOR = 3
|
---|
1124 | Const HALFTONE = 4
|
---|
1125 | Const STRETCH_ANDSCANS = BLACKONWHITE
|
---|
1126 | Const STRETCH_ORSCANS = WHITEONBLACK
|
---|
1127 | Const STRETCH_DELETESCANS = COLORONCOLOR
|
---|
1128 | Const STRETCH_HALFTONE = HALFTONE
|
---|
1129 | Declare Function SetStretchBltMode Lib "gdi32" (hdc As HDC, iStretchMode As Long) As Long
|
---|
1130 |
|
---|
1131 | Declare Function SetTextAlign Lib "gdi32" (hdc As HDC, fMode As DWord) As DWord
|
---|
1132 | Declare Function SetTextColor Lib "gdi32" (hdc As HDC, crColor As DWord) As DWord
|
---|
1133 | Declare Function SetViewportExtEx Lib "gdi32" (hdc As HDC, nXExtent As Long, nYExtent As Long, ByRef lpSize As SIZE) As Long
|
---|
1134 | Declare Function SetViewportOrgEx Lib "gdi32" (hdc As HDC, x As Long, y As Long, ByRef lpPoint As POINTAPI) As Long
|
---|
1135 | Declare Function SetWindowExtEx Lib "gdi32" (hdc As HDC, nXExtent As Long, nYExtent As Long, ByRef lpSize As SIZE) As Long
|
---|
1136 | Declare Function SetWindowOrgEx Lib "gdi32" (hdc As HDC, x As Long, y As Long, ByRef lpPoint As POINTAPI) As Long
|
---|
1137 | Declare Function SetWinMetaFileBits Lib "gdi32" (cbBuffer As DWord, pbBuffer As *Byte, hdcRef As HDC, ByRef mfp As METAFILEPICT) As HENHMETAFILE
|
---|
1138 | Declare Function StartDoc Lib "gdi32" Alias _FuncName_StartDoc (hdc As HDC, ByRef di As DOCINFO) As Long
|
---|
1139 | Declare Function StartPage Lib "gdi32" (hdc As HDC) As Long
|
---|
1140 | Declare Function StretchBlt Lib "gdi32" (hdcDest As HDC, nXOriginDest As Long, nYOriginDest As Long, nWidthDest As Long, nHeightDest As Long, hdcSrc As HDC, nXOriginSrc As Long, nYOriginSrc As Long, nWidthSrc As Long, nHeightSrc As Long, dwRop As DWord) As Long
|
---|
1141 | Declare Function StretchDIBits Lib "gdi32" (hdc As HDC, XDest As Long, YDest As Long, nDestWidth As Long, nDestHeight As Long, XSrc As Long, YSrc As Long, nSrcWidth As Long, nSrcHeight As Long, lpBits As VoidPtr, ByRef lpBitsInfo As BITMAPINFO, iUsage As Long, dwRop As DWord) As Long
|
---|
1142 | Declare Function StrokeAndFillPath Lib "gdi32" (hdc As HDC) As Long
|
---|
1143 | Declare Function StrokePath Lib "gdi32" (DC As DWord) As Long
|
---|
1144 | Declare Function TextOutA Lib "gdi32" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCSTR, cbString As Long) As Long
|
---|
1145 | Declare Function TextOutW Lib "gdi32" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCWSTR, cbString As Long) As Long
|
---|
1146 | #ifdef UNICODE
|
---|
1147 | Declare Function TextOut Lib "gdi32" Alias "TextOutW" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCWSTR, cbString As Long) As Long
|
---|
1148 | #else
|
---|
1149 | Declare Function TextOut Lib "gdi32" Alias "TextOutA" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCSTR, cbString As Long) As Long
|
---|
1150 | #endif
|
---|
1151 | Declare Function TransparentBlt Lib "msimg32" (hdcDest As HDC, nXDest As Long, nYDest As Long, nDestWidth As Long, nDestHeight As Long, hdcSrc As HDC, XSrc As Long, YSrc As Long, nSrcWidth As Long, nSrcHeight As Long, dwRop As DWord) As Long
|
---|
1152 |
|
---|
1153 | /* Pixel Format */
|
---|
1154 | Type PIXELFORMATDESCRIPTOR
|
---|
1155 | nSize As Word
|
---|
1156 | nVersion As Word
|
---|
1157 | dwFlags As DWord
|
---|
1158 | iPixelType As Byte
|
---|
1159 | cColorBits As Byte
|
---|
1160 | cRedBits As Byte
|
---|
1161 | cRedShift As Byte
|
---|
1162 | cGreenBits As Byte
|
---|
1163 | cGreenShift As Byte
|
---|
1164 | cBlueBits As Byte
|
---|
1165 | cBlueShift As Byte
|
---|
1166 | cAlphaBits As Byte
|
---|
1167 | cAlphaShift As Byte
|
---|
1168 | cAccumBits As Byte
|
---|
1169 | cAccumRedBits As Byte
|
---|
1170 | cAccumGreenBits As Byte
|
---|
1171 | cAccumBlueBits As Byte
|
---|
1172 | cAccumAlphaBits As Byte
|
---|
1173 | cDepthBits As Byte
|
---|
1174 | cStencilBits As Byte
|
---|
1175 | cAuxBuffers As Byte
|
---|
1176 | iLayerType As Byte
|
---|
1177 | bReserved As Byte
|
---|
1178 | dwLayerMask As DWord
|
---|
1179 | dwVisibleMask As DWord
|
---|
1180 | dwDamageMask As DWord
|
---|
1181 | End Type
|
---|
1182 | TypeDef PPIXELFORMATDESCRIPTOR = *PIXELFORMATDESCRIPTOR
|
---|
1183 | TypeDef LPPIXELFORMATDESCRIPTOR = *PIXELFORMATDESCRIPTOR
|
---|
1184 |
|
---|
1185 | Const PFD_TYPE_RGBA = 0
|
---|
1186 | Const PFD_TYPE_COLORINDEX = 1
|
---|
1187 |
|
---|
1188 | Const PFD_MAIN_PLANE = 0
|
---|
1189 | Const PFD_OVERLAY_PLANE = 1
|
---|
1190 | Const PFD_UNDERLAY_PLANE = (-1)
|
---|
1191 |
|
---|
1192 | Const PFD_DOUBLEBUFFER = &H00000001
|
---|
1193 | Const PFD_STEREO = &H00000002
|
---|
1194 | Const PFD_DRAW_TO_WINDOW = &H00000004
|
---|
1195 | Const PFD_DRAW_TO_BITMAP = &H00000008
|
---|
1196 | Const PFD_SUPPORT_GDI = &H00000010
|
---|
1197 | Const PFD_SUPPORT_OPENGL = &H00000020
|
---|
1198 | Const PFD_GENERIC_FORMAT = &H00000040
|
---|
1199 | Const PFD_NEED_PALETTE = &H00000080
|
---|
1200 | Const PFD_NEED_SYSTEM_PALETTE = &H00000100
|
---|
1201 | Const PFD_SWAP_EXCHANGE = &H00000200
|
---|
1202 | Const PFD_SWAP_COPY = &H00000400
|
---|
1203 | Const PFD_SWAP_LAYER_BUFFERS = &H00000800
|
---|
1204 | Const PFD_GENERIC_ACCELERATED = &H00001000
|
---|
1205 | Const PFD_SUPPORT_DIRECTDRAW = &H00002000
|
---|
1206 |
|
---|
1207 | Const PFD_DEPTH_DONTCARE = &H20000000
|
---|
1208 | Const PFD_DOUBLEBUFFER_DONTCARE = &H40000000
|
---|
1209 | Const PFD_STEREO_DONTCARE = &H80000000
|
---|
1210 |
|
---|
1211 | Declare Function ChoosePixelFormat Lib "gdi32" (hdc As HDC, ByRef lppfd As PIXELFORMATDESCRIPTOR) As Long
|
---|
1212 | Declare Function DescribePixelFormat Lib "gdi32" (hdc As HDC, n As Long, u As DWord, ByRef lppfd As PIXELFORMATDESCRIPTOR) As Long
|
---|
1213 | Declare Function GetPixelFormat Lib "gdi32" (hdc As HDC) As Long
|
---|
1214 | Declare Function SetPixelFormat Lib "gdi32" (hdc As HDC, i As Long, ByRef lppfd As PIXELFORMATDESCRIPTOR) As BOOL
|
---|
1215 |
|
---|
1216 |
|
---|
1217 | /* OpenGL Support */
|
---|
1218 |
|
---|
1219 | Declare Function wglCopyContext Lib "opengl32" (hglrcSource As HGLRC, hglrcDest As HGLRC, mask As DWord) As BOOL
|
---|
1220 | Declare Function wglCreateContext Lib "opengl32" (hdc As HDC) As HGLRC
|
---|
1221 | Declare Function wglCreateLayerContext Lib "opengl32" (hdc As HDC, iLayerPlane As Long) As HGLRC
|
---|
1222 | Declare Function wglDeleteContext Lib "opengl32" (hglrc As HGLRC) As BOOL
|
---|
1223 | Declare Function wglGetCurrentContext Lib "opengl32" () As HGLRC
|
---|
1224 | Declare Function wglGetCurrentDC Lib "opengl32" () As HDC
|
---|
1225 | Declare Function wglGetProcAddress Lib "opengl32" (lpstr As LPSTR) As PROC
|
---|
1226 | Declare Function wglMakeCurrent Lib "opengl32" (hdc As HDC, hglrc As HGLRC) As BOOL
|
---|
1227 | Declare Function wglShareLists Lib "opengl32" (hglrc1 As HGLRC, hglrc2 As HGLRC) As BOOL
|
---|
1228 | Declare Function wglUseFontBitmaps Lib "opengl32" Alias _FuncName_wglUseFontBitmaps (hdc As HDC, first As DWord, count As DWord, listbase As DWord) As BOOL
|
---|
1229 | Declare Function SwapBuffers Lib "gdi32" (hdc As HDC) As BOOL
|
---|
1230 |
|
---|
1231 | Type POINTFLOAT
|
---|
1232 | x As Single
|
---|
1233 | y As Single
|
---|
1234 | End Type
|
---|
1235 | TypeDef PPOINTFLOAT = *POINTFLOAT
|
---|
1236 |
|
---|
1237 | Type GLYPHMETRICSFLOAT
|
---|
1238 | gmfBlackBoxX As Single
|
---|
1239 | gmfBlackBoxY As Single
|
---|
1240 | gmfptGlyphOrigin As POINTFLOAT
|
---|
1241 | gmfCellIncX As Single
|
---|
1242 | gmfCellIncY As Single
|
---|
1243 | End Type
|
---|
1244 | TypeDef PGLYPHMETRICSFLOAT = *GLYPHMETRICSFLOAT
|
---|
1245 | TypeDef LPGLYPHMETRICSFLOAT = *GLYPHMETRICSFLOAT
|
---|
1246 |
|
---|
1247 | Const WGL_FONT_LINES = 0
|
---|
1248 | Const WGL_FONT_POLYGONS = 1
|
---|
1249 |
|
---|
1250 | Declare Function wglUseFontOutlines Lib "opengl32" Alias _FuncName_wglUseFontOutlines (hdc As HDC, first As DWord, count As DWord, listbase As DWord, deviation As Single, extrusion As Single, format As Long, ByRef lpgmf As GLYPHMETRICSFLOAT) As BOOL
|
---|
1251 |
|
---|
1252 | Type LAYERPLANEDESCRIPTOR
|
---|
1253 | nSize As Word
|
---|
1254 | nVersion As Word
|
---|
1255 | dwFlags As DWord
|
---|
1256 | iPixelType As Byte
|
---|
1257 | cColorBits As Byte
|
---|
1258 | cRedBits As Byte
|
---|
1259 | cRedShift As Byte
|
---|
1260 | cGreenBits As Byte
|
---|
1261 | cGreenShift As Byte
|
---|
1262 | cBlueBits As Byte
|
---|
1263 | cBlueShift As Byte
|
---|
1264 | cAlphaBits As Byte
|
---|
1265 | cAlphaShift As Byte
|
---|
1266 | cAccumBits As Byte
|
---|
1267 | cAccumRedBits As Byte
|
---|
1268 | cAccumGreenBits As Byte
|
---|
1269 | cAccumBlueBits As Byte
|
---|
1270 | cAccumAlphaBits As Byte
|
---|
1271 | cDepthBits As Byte
|
---|
1272 | cStencilBits As Byte
|
---|
1273 | cAuxBuffers As Byte
|
---|
1274 | iLayerPlane As Byte
|
---|
1275 | bReserved As Byte
|
---|
1276 | crTransparent As COLORREF
|
---|
1277 | End Type
|
---|
1278 | TypeDef PLAYERPLANEDESCRIPTOR = *LAYERPLANEDESCRIPTOR
|
---|
1279 | TypeDef LPLAYERPLANEDESCRIPTOR = *LAYERPLANEDESCRIPTOR
|
---|
1280 |
|
---|
1281 | Const LPD_DOUBLEBUFFER = &H00000001
|
---|
1282 | Const LPD_STEREO = &H00000002
|
---|
1283 | Const LPD_SUPPORT_GDI = &H00000010
|
---|
1284 | Const LPD_SUPPORT_OPENGL = &H00000020
|
---|
1285 | Const LPD_SHARE_DEPTH = &H00000040
|
---|
1286 | Const LPD_SHARE_STENCIL = &H00000080
|
---|
1287 | Const LPD_SHARE_ACCUM = &H00000100
|
---|
1288 | Const LPD_SWAP_EXCHANGE = &H00000200
|
---|
1289 | Const LPD_SWAP_COPY = &H00000400
|
---|
1290 | Const LPD_TRANSPARENT = &H00001000
|
---|
1291 | Const LPD_TYPE_RGBA = 0
|
---|
1292 | Const LPD_TYPE_COLORINDEX = 1
|
---|
1293 |
|
---|
1294 | Const WGL_SWAP_MAIN_PLANE = &H00000001
|
---|
1295 | Const WGL_SWAP_OVERLAY1 = &H00000002
|
---|
1296 | Const WGL_SWAP_OVERLAY2 = &H00000004
|
---|
1297 | Const WGL_SWAP_OVERLAY3 = &H00000008
|
---|
1298 | Const WGL_SWAP_OVERLAY4 = &H00000010
|
---|
1299 | Const WGL_SWAP_OVERLAY5 = &H00000020
|
---|
1300 | Const WGL_SWAP_OVERLAY6 = &H00000040
|
---|
1301 | Const WGL_SWAP_OVERLAY7 = &H00000080
|
---|
1302 | Const WGL_SWAP_OVERLAY8 = &H00000100
|
---|
1303 | Const WGL_SWAP_OVERLAY9 = &H00000200
|
---|
1304 | Const WGL_SWAP_OVERLAY10 = &H00000400
|
---|
1305 | Const WGL_SWAP_OVERLAY11 = &H00000800
|
---|
1306 | Const WGL_SWAP_OVERLAY12 = &H00001000
|
---|
1307 | Const WGL_SWAP_OVERLAY13 = &H00002000
|
---|
1308 | Const WGL_SWAP_OVERLAY14 = &H00004000
|
---|
1309 | Const WGL_SWAP_OVERLAY15 = &H00008000
|
---|
1310 | Const WGL_SWAP_UNDERLAY1 = &H00010000
|
---|
1311 | Const WGL_SWAP_UNDERLAY2 = &H00020000
|
---|
1312 | Const WGL_SWAP_UNDERLAY3 = &H00040000
|
---|
1313 | Const WGL_SWAP_UNDERLAY4 = &H00080000
|
---|
1314 | Const WGL_SWAP_UNDERLAY5 = &H00100000
|
---|
1315 | Const WGL_SWAP_UNDERLAY6 = &H00200000
|
---|
1316 | Const WGL_SWAP_UNDERLAY7 = &H00400000
|
---|
1317 | Const WGL_SWAP_UNDERLAY8 = &H00800000
|
---|
1318 | Const WGL_SWAP_UNDERLAY9 = &H01000000
|
---|
1319 | Const WGL_SWAP_UNDERLAY10 = &H02000000
|
---|
1320 | Const WGL_SWAP_UNDERLAY11 = &H04000000
|
---|
1321 | Const WGL_SWAP_UNDERLAY12 = &H08000000
|
---|
1322 | Const WGL_SWAP_UNDERLAY13 = &H10000000
|
---|
1323 | Const WGL_SWAP_UNDERLAY14 = &H20000000
|
---|
1324 | Const WGL_SWAP_UNDERLAY15 = &H40000000
|
---|
1325 |
|
---|
1326 | Declare Function wglDescribeLayerPlane Lib "opengl32" (hdc As HDC, iPixelFormat As Long, iLayerPlane As Long, nByte As DWord, ByRef lplpd As LAYERPLANEDESCRIPTOR) As BOOL
|
---|
1327 | Declare Function wglSetLayerPaletteEntries Lib "opengl32" (hdc As HDC, iLayerPlane As Long, iStart As Long, cEntries As Long, lpcr As *COLORREF) As Long
|
---|
1328 | Declare Function wglGetLayerPaletteEntries Lib "opengl32" (hdc As HDC, iLayerPlane As Long, iStart As Long, cEntries As Long, lpcr As *COLORREF) As Long
|
---|
1329 | Declare Function wglRealizeLayerPalette Lib "opengl32" (hdc As HDC, iLayerPlane As Long, bRealize As BOOL) As BOOL
|
---|
1330 | Declare Function wglSwapLayerBuffers Lib "opengl32" (hdc As HDC, fuPlanes As DWord) As BOOL
|
---|
1331 |
|
---|
1332 | Type WGLSWAP
|
---|
1333 | hdc As HDC
|
---|
1334 | uiFlags As DWord
|
---|
1335 | End Type
|
---|
1336 | TypeDef PWGLSWAP = *WGLSWAP
|
---|
1337 | TypeDef LPWGLSWAP = *WGLSWAP
|
---|
1338 |
|
---|
1339 | Const WGL_SWAPMULTIPLE_MAX = 16
|
---|
1340 |
|
---|
1341 | 'Declare Function wglSwapMultipleBuffers Lib "opengl32" (u As DWord, lpwglswap As *WGLSWAP) As DWord
|
---|