| 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 |
| 47 |
#define DMPAPER_JAPANESE_POSTCARD 43 |
| 48 |
#define DMPAPER_9X11 44 |
| 49 |
#define DMPAPER_10X11 45 |
| 50 |
#define DMPAPER_15X11 46 |
| 51 |
#define DMPAPER_ENV_INVITE 47 |
| 52 |
#define DMPAPER_RESERVED_48 48 |
| 53 |
#define DMPAPER_RESERVED_49 49 |
| 54 |
#define DMPAPER_LETTER_EXTRA 50 |
| 55 |
#define DMPAPER_LEGAL_EXTRA 51 |
| 56 |
#define DMPAPER_TABLOID_EXTRA 52 |
| 57 |
#define DMPAPER_A4_EXTRA 53 |
| 58 |
#define DMPAPER_LETTER_TRANSVERSE 54 |
| 59 |
#define DMPAPER_A4_TRANSVERSE 55 |
| 60 |
#define DMPAPER_LETTER_EXTRA_TRANSVERSE 56 |
| 61 |
#define DMPAPER_A_PLUS 57 |
| 62 |
#define DMPAPER_B_PLUS 58 |
| 63 |
#define DMPAPER_LETTER_PLUS 59 |
| 64 |
#define DMPAPER_A4_PLUS 60 |
| 65 |
#define DMPAPER_A5_TRANSVERSE 61 |
| 66 |
#define DMPAPER_B5_TRANSVERSE 62 |
| 67 |
#define DMPAPER_A3_EXTRA 63 |
| 68 |
#define DMPAPER_A5_EXTRA 64 |
| 69 |
#define DMPAPER_B5_EXTRA 65 |
| 70 |
#define DMPAPER_A2 66 |
| 71 |
#define DMPAPER_A3_TRANSVERSE 67 |
| 72 |
#define DMPAPER_A3_EXTRA_TRANSVERSE 68 |
| 73 |
#ifndef DMPAPER_LAST |
| 74 |
#define DMPAPER_LAST DMPAPER_A3_EXTRA_TRANSVERSE |
| 75 |
#endif |
| 76 |
|
| 77 |
#define DMPAPER_USER 256 |
| 78 |
|
| 79 |
|
| 80 |
#ifndef DMPAPER_FIRST |
| 81 |
#define DMBIN_FIRST DMBIN_UPPER |
| 82 |
#endif |
| 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 |
| 102 |
|
| 103 |
#define DMBIN_USER 256 |
| 104 |
|
| 105 |
|
| 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 |
| 112 |
|
| 113 |
|
| 114 |
#endif |