[175] | 1 | #ifndef _MISSING_H
|
---|
| 2 | #define _MISSING_H
|
---|
| 3 |
|
---|
| 4 | #include <winspool.h>
|
---|
| 5 |
|
---|
| 6 | #ifndef DeleteBitmap
|
---|
| 7 | #define DeleteBitmap(hbm) DeleteObject((HGDIOBJ)(HBITMAP)(hbm))
|
---|
| 8 | #endif
|
---|
| 9 | #ifndef DeleteBrush
|
---|
| 10 | #define DeleteBrush(hbr) DeleteObject((HGDIOBJ)(HBRUSH)(hbr))
|
---|
| 11 | #endif
|
---|
| 12 | #ifndef DeleteFont
|
---|
| 13 | #define DeleteFont(hfont) DeleteObject((HGDIOBJ)(HFONT)(hfont))
|
---|
| 14 | #endif
|
---|
| 15 | #ifndef DeletePalette
|
---|
| 16 | #define DeletePalette(hpal) DeleteObject((HGDIOBJ)(HPALETTE)(hpal))
|
---|
| 17 | #endif
|
---|
| 18 | #ifndef DeletePen
|
---|
| 19 | #define DeletePen(hpen) DeleteObject((HGDIOBJ)(HPEN)(hpen))
|
---|
| 20 | #endif
|
---|
| 21 | #ifndef SelectBitmap
|
---|
| 22 | #define SelectBitmap(hdc, hbm) ((HBITMAP)SelectObject((hdc), (HGDIOBJ)(HBITMAP)(hbm)))
|
---|
| 23 | #endif
|
---|
| 24 | #ifndef SelectBrush
|
---|
| 25 | #define SelectBrush(hdc, hbr) ((HBRUSH)SelectObject((hdc), (HGDIOBJ)(HBRUSH)(hbr)))
|
---|
| 26 | #endif
|
---|
| 27 | #ifndef SelectFont
|
---|
| 28 | #define SelectFont(hdc, hfont) ((HFONT)SelectObject((hdc), (HGDIOBJ)(HFONT)(hfont)))
|
---|
| 29 | #endif
|
---|
| 30 | #ifndef SelectPen
|
---|
| 31 | #define SelectPen(hdc, hpen) ((HPEN)SelectObject((hdc), (HGDIOBJ)(HPEN)(hpen)))
|
---|
| 32 | #endif
|
---|
| 33 | #ifndef GetNextWindow
|
---|
| 34 | #define GetNextWindow(hWnd,wCmd) GetWindow((hWnd),(wCmd))
|
---|
| 35 | #endif
|
---|
| 36 | #ifndef GetStockBrush
|
---|
| 37 | #define GetStockBrush(i) ((HBRUSH)GetStockObject(i))
|
---|
| 38 | #endif
|
---|
| 39 | #ifndef GetStockPen
|
---|
| 40 | #define GetStockPen(i) ((HPEN)GetStockObject(i))
|
---|
| 41 | #endif
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 | #define DM_SPECVERSION 0x0401
|
---|
| 45 |
|
---|
| 46 | #define DMPAPER_ISO_B4 42 /* B4 (ISO) 250 x 353 mm */
|
---|
| 47 | #define DMPAPER_JAPANESE_POSTCARD 43 /* Japanese Postcard 100 x 148 mm */
|
---|
| 48 | #define DMPAPER_9X11 44 /* 9 x 11 in */
|
---|
| 49 | #define DMPAPER_10X11 45 /* 10 x 11 in */
|
---|
| 50 | #define DMPAPER_15X11 46 /* 15 x 11 in */
|
---|
| 51 | #define DMPAPER_ENV_INVITE 47 /* Envelope Invite 220 x 220 mm */
|
---|
| 52 | #define DMPAPER_RESERVED_48 48 /* RESERVED--DO NOT USE */
|
---|
| 53 | #define DMPAPER_RESERVED_49 49 /* RESERVED--DO NOT USE */
|
---|
| 54 | #define DMPAPER_LETTER_EXTRA 50 /* Letter Extra 9 \275 x 12 in */
|
---|
| 55 | #define DMPAPER_LEGAL_EXTRA 51 /* Legal Extra 9 \275 x 15 in */
|
---|
| 56 | #define DMPAPER_TABLOID_EXTRA 52 /* Tabloid Extra 11.69 x 18 in */
|
---|
| 57 | #define DMPAPER_A4_EXTRA 53 /* A4 Extra 9.27 x 12.69 in */
|
---|
| 58 | #define DMPAPER_LETTER_TRANSVERSE 54 /* Letter Transverse 8 \275 x 11 in */
|
---|
| 59 | #define DMPAPER_A4_TRANSVERSE 55 /* A4 Transverse 210 x 297 mm */
|
---|
| 60 | #define DMPAPER_LETTER_EXTRA_TRANSVERSE 56 /* Letter Extra Transverse 9\275 x 12 in */
|
---|
| 61 | #define DMPAPER_A_PLUS 57 /* SuperA/SuperA/A4 227 x 356 mm */
|
---|
| 62 | #define DMPAPER_B_PLUS 58 /* SuperB/SuperB/A3 305 x 487 mm */
|
---|
| 63 | #define DMPAPER_LETTER_PLUS 59 /* Letter Plus 8.5 x 12.69 in */
|
---|
| 64 | #define DMPAPER_A4_PLUS 60 /* A4 Plus 210 x 330 mm */
|
---|
| 65 | #define DMPAPER_A5_TRANSVERSE 61 /* A5 Transverse 148 x 210 mm */
|
---|
| 66 | #define DMPAPER_B5_TRANSVERSE 62 /* B5 (JIS) Transverse 182 x 257 mm */
|
---|
| 67 | #define DMPAPER_A3_EXTRA 63 /* A3 Extra 322 x 445 mm */
|
---|
| 68 | #define DMPAPER_A5_EXTRA 64 /* A5 Extra 174 x 235 mm */
|
---|
| 69 | #define DMPAPER_B5_EXTRA 65 /* B5 (ISO) Extra 201 x 276 mm */
|
---|
| 70 | #define DMPAPER_A2 66 /* A2 420 x 594 mm */
|
---|
| 71 | #define DMPAPER_A3_TRANSVERSE 67 /* A3 Transverse 297 x 420 mm */
|
---|
| 72 | #define DMPAPER_A3_EXTRA_TRANSVERSE 68 /* A3 Extra Transverse 322 x 445 mm */
|
---|
| 73 | #ifndef DMPAPER_LAST
|
---|
| 74 | #define DMPAPER_LAST DMPAPER_A3_EXTRA_TRANSVERSE
|
---|
| 75 | #endif /*DMPAPER_LAST */
|
---|
| 76 |
|
---|
| 77 | #define DMPAPER_USER 256
|
---|
| 78 |
|
---|
| 79 | /* bin selections */
|
---|
| 80 | #ifndef DMPAPER_FIRST
|
---|
| 81 | #define DMBIN_FIRST DMBIN_UPPER
|
---|
| 82 | #endif /*DMPAPER_FIRST*/
|
---|
| 83 |
|
---|
| 84 | #define DMBIN_UPPER 1
|
---|
| 85 | #define DMBIN_ONLYONE 1
|
---|
| 86 | #define DMBIN_LOWER 2
|
---|
| 87 | #define DMBIN_MIDDLE 3
|
---|
| 88 | #define DMBIN_MANUAL 4
|
---|
| 89 | #define DMBIN_ENVELOPE 5
|
---|
| 90 | #define DMBIN_ENVMANUAL 6
|
---|
| 91 | #define DMBIN_AUTO 7
|
---|
| 92 | #define DMBIN_TRACTOR 8
|
---|
| 93 | #define DMBIN_SMALLFMT 9
|
---|
| 94 | #define DMBIN_LARGEFMT 10
|
---|
| 95 | #define DMBIN_LARGECAPACITY 11
|
---|
| 96 | #define DMBIN_CASSETTE 14
|
---|
| 97 | #define DMBIN_FORMSOURCE 15
|
---|
| 98 |
|
---|
| 99 | #ifndef DMBIN_LAST
|
---|
| 100 | #define DMBIN_LAST DMBIN_FORMSOURCE
|
---|
| 101 | #endif /*DMBIN_LAST*/
|
---|
| 102 |
|
---|
| 103 | #define DMBIN_USER 256 /* device specific bins start here */
|
---|
| 104 |
|
---|
| 105 | /* print qualities */
|
---|
| 106 | #define DMRES_DRAFT (-1)
|
---|
| 107 | #define DMRES_LOW (-2)
|
---|
| 108 | #define DMRES_MEDIUM (-3)
|
---|
| 109 | #define DMRES_HIGH (-4)
|
---|
| 110 |
|
---|
| 111 | #define DMTT_DOWNLOAD_OUTLINE 4 /* download TT fonts as outline soft fonts */
|
---|
| 112 |
|
---|
| 113 |
|
---|
| 114 | #endif /* _MISSING_H */
|
---|