|
|
1.1 ! root 1: /******************************************************************************\ ! 2: * ! 3: * PAINT.H ! 4: * ! 5: \******************************************************************************/ ! 6: ! 7: ! 8: /******************************************************************************\ ! 9: * SYMBOLIC CONSTANTS ! 10: \******************************************************************************/ ! 11: ! 12: #define BORDER 5 ! 13: ! 14: #define NUM_GRAPHICS_XSLOTS 4 ! 15: #define NUM_GRAPHICS_YSLOTS 3 ! 16: ! 17: #define ERR_MOD_NAME "Error: PRINTER.EXE (PAINT.C)" ! 18: ! 19: ! 20: ! 21: /******************************************************************************\ ! 22: * TYPEDEFS ! 23: \******************************************************************************/ ! 24: ! 25: typedef struct ! 26: { ! 27: int left; ! 28: int top; ! 29: int right; ! 30: int bottom; ! 31: ! 32: } RECTI, *PRECTI; ! 33: ! 34: typedef struct tagArFonts ! 35: { ! 36: int nFonts; ! 37: int cySpace; ! 38: HDC hdc; ! 39: LOGFONT *lf; ! 40: TEXTMETRIC *tm; ! 41: int *Type; ! 42: ! 43: } ARFONTS, *PARFONTS; ! 44: ! 45: ! 46: ! 47: /******************************************************************************\ ! 48: * GLOBAL VARIABLES ! 49: \******************************************************************************/ ! 50: ! 51: HDC hdcGlobal; // globals utilized by enum fonts funtions ! 52: PARFONTS parFontsGlobal; ! 53: int iFace,jFont; ! 54: int nFaces; ! 55: ! 56: int giDeltaX; // vars used by Get*GraphicSlot calls ! 57: int giDeltaY; ! 58: int giColumn; ! 59: ! 60: ! 61: ! 62: /******************************************************************************\ ! 63: * EXTERNAL VARIABLES ! 64: \******************************************************************************/ ! 65: ! 66: extern HANDLE ghInst; ! 67: extern HWND ghwndMain; ! 68: extern DWORD gdwGraphicsOptions; ! 69: extern int giMapMode; ! 70: extern LONG glcyMenu; ! 71: ! 72: ! 73: /******************************************************************************\ ! 74: * FUNCTION PROTOTYPES ! 75: \******************************************************************************/ ! 76: ! 77: void GetFirstGraphicSlot (LPRECT, PRECTI); ! 78: void GetNextGraphicSlot (PRECTI); ! 79: ! 80: void DrawFonts (HDC, LPRECT); ! 81: PARFONTS BuildFontList (HDC); ! 82: void FreeFontList (PARFONTS); ! 83: ! 84: int CALLBACK MyEnumCount (LPLOGFONT, LPTEXTMETRIC, DWORD, LPVOID); ! 85: int CALLBACK MyEnumCopy (LPLOGFONT, LPTEXTMETRIC, DWORD, LPVOID); ! 86: int CALLBACK MyEnumFaces (LPLOGFONT, LPTEXTMETRIC, DWORD, LPVOID);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.