|
|
1.1 ! root 1: /************************************************************************\ ! 2: * ! 3: * PAINT.H ! 4: * ! 5: \************************************************************************/ ! 6: ! 7: ! 8: /************************************************************************\ ! 9: * SYMBOLIC CONSTANTS ! 10: \************************************************************************/ ! 11: ! 12: #define ARC 0x00000001 ! 13: #define ELLIPSE 0x00000002 ! 14: #define LINETO 0x00000004 ! 15: #define PIE 0x00000008 ! 16: #define POLYBEZIER 0x00000010 ! 17: #define POLYGON 0x00000020 ! 18: #define POLYLINE 0x00000040 ! 19: #define POLYPOLYGON 0x00000080 ! 20: #define RECTANGLE 0x00000100 ! 21: #define ROUNDRECT 0x00000200 ! 22: #define STRETCH_BLT 0x00000400 ! 23: #define TEXTOUT 0x00000800 ! 24: ! 25: #define ENUMFONTS 0x80000000 ! 26: ! 27: #define BORDER 5 ! 28: ! 29: #define MAX_GRAPHICS 12 ! 30: #define MAX_MAP_MODE_LPTSTRS 8 ! 31: ! 32: #define NUM_GRAPHICS_XSLOTS 4 ! 33: #define NUM_GRAPHICS_YSLOTS 3 ! 34: ! 35: #define TOOLBARHEIGHT 34 ! 36: ! 37: ! 38: ! 39: /************************************************************************\ ! 40: * TYPEDEFS ! 41: \************************************************************************/ ! 42: ! 43: typedef struct { ! 44: ! 45: int left; ! 46: int top; ! 47: int right; ! 48: int bottom; ! 49: ! 50: } RECTI, *PRECTI; ! 51: ! 52: typedef struct tagArFonts{ ! 53: ! 54: int nFonts; ! 55: int cySpace; ! 56: HDC hdc; ! 57: LOGFONT *lf; ! 58: TEXTMETRIC *tm; ! 59: int *Type; ! 60: ! 61: } ARFONTS, *PARFONTS; ! 62: ! 63: ! 64: ! 65: /************************************************************************\ ! 66: * GLOBAL VARIABLES ! 67: \************************************************************************/ ! 68: ! 69: HDC hdcGlobal; /* globals utilized by enum fonts funtions */ ! 70: PARFONTS parFontsGlobal; ! 71: int iFace,jFont; ! 72: int nFaces; ! 73: ! 74: int iDeltaX, iDeltaY, column; /* vars used by Get*GraphicSlot calls*/ ! 75: ! 76: ! 77: ! 78: /************************************************************************\ ! 79: * FUNCTION PROTOTYPES ! 80: \************************************************************************/ ! 81: ! 82: BOOL Paint (HDC, LPRECT); ! 83: ! 84: void GetFirstGraphicSlot (PRECTI); ! 85: void GetNextGraphicSlot (PRECTI); ! 86: ! 87: void DrawFonts (HDC, LPRECT); ! 88: PARFONTS BuildFontList (HDC); ! 89: void FreeFontList (PARFONTS); ! 90: ! 91: int APIENTRY MyEnumCount (LPLOGFONT, LPTEXTMETRIC, DWORD, LPVOID); ! 92: int APIENTRY MyEnumCopy (LPLOGFONT, LPTEXTMETRIC, DWORD, LPVOID); ! 93: int APIENTRY MyEnumFaces (LPLOGFONT, LPTEXTMETRIC, DWORD, LPVOID);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.