|
|
1.1.1.2 ! root 1: ! 2: /******************************************************************************\ ! 3: * This is a part of the Microsoft Source Code Samples. ! 4: * Copyright (C) 1993 Microsoft Corporation. ! 5: * All rights reserved. ! 6: * This source code is only intended as a supplement to ! 7: * Microsoft Development Tools and/or WinHelp documentation. ! 8: * See these sources for detailed information regarding the ! 9: * Microsoft samples programs. ! 10: \******************************************************************************/ ! 11: 1.1 root 12: /* getdev.h - header file for the getdev sample. */ 13: 14: 15: /* function prototypes. Window procedures first. */ 16: long FAR PASCAL MainDlgProc(HWND, UINT, UINT, LONG); 17: 18: VOID ExpandInfo (HWND, int, int); 19: 20: 21: 22: /* declare global variable to be used to hold string sent to list box. */ 23: char buffer[100]; 24: char space[] = " %s"; 25: 26: 27: 28: /* the control ID from the dialog box. */ 29: #define DID_LISTBOX 0x006B 30: 31: 32: /* structure for the lookup tables. */ 33: typedef struct tagLookupEntry{ 34: int Value; 35: char String[100]; 36: } LookupEntry; 37: 38: 39: 40: /* GetDeviceCaps() codes from WINGDI.H */ 41: #define NINDEX 28 42: LookupEntry DevCaps[NINDEX] = 43: {{ 0 , "DRIVERVERSION "}, 44: { 2 , "TECHNOLOGY "}, 45: { 4 , "HORZSIZE "}, 46: { 6 , "VERTSIZE "}, 47: { 8 , "HORZRES "}, 48: { 10, "VERTRES "}, 49: { 12, "BITSPIXEL "}, 50: { 14, "PLANES "}, 51: { 16, "NUMBRUSHES "}, 52: { 18, "NUMPENS "}, 53: { 20, "NUMMARKERS "}, 54: { 22, "NUMFONTS "}, 55: { 24, "NUMCOLORS "}, 56: { 26, "PDEVICESIZE "}, 57: { 28, "CURVECAPS "}, 58: { 30, "LINECAPS "}, 59: { 32, "POLYGONALCAPS "}, 60: { 34, "TEXTCAPS "}, 61: { 36, "CLIPCAPS "}, 62: { 38, "RASTERCAPS "}, 63: { 40, "ASPECTX "}, 64: { 42, "ASPECTY "}, 65: { 44, "ASPECTXY "}, 66: { 88, "LOGPIXELSX "}, 67: { 90, "LOGPIXELSY "}, 68: { 104, "SIZEPALETTE "}, 69: { 106, "NUMRESERVED "}, 70: { 108, "COLORRES "}}; 71: 72: 73: 74: 75: /* Device Technologies */ 76: #define NDevice 7 77: LookupEntry Device[NDevice] = 78: {{ 0 , "DT_PLOTTER "}, 79: { 1 , "DT_RASDISPLAY"}, 80: { 2 , "DT_RASPRINTER"}, 81: { 3 , "DT_RASCAMERA "}, 82: { 4 , "DT_CHARSTREAM"}, 83: { 5 , "DT_METAFILE "}, 84: { 6 , "DT_DISPFILE "}}; 85: 86: 87: /* Curve Capabilities */ 88: #define NCurveCaps 9 89: LookupEntry CurveCaps[NCurveCaps] = 90: {{ 0 , "CC_NONE "}, 91: { 1 , "CC_CIRCLES "}, 92: { 2 , "CC_PIE "}, 93: { 4 , "CC_CHORD "}, 94: { 8 , "CC_ELLIPSES "}, 95: { 16 , "CC_WIDE "}, 96: { 32 , "CC_STYLED "}, 97: { 64 , "CC_WIDESTYLED"}, 98: { 128 , "CC_INTERIORS "}}; 99: 100: 101: /* Line Capabilities */ 102: #define NLineCaps 8 103: LookupEntry LineCaps[NLineCaps] = 104: {{ 0 , "LC_NONE "}, 105: { 2 , "LC_POLYLINE "}, 106: { 4 , "LC_MARKER "}, 107: { 8 , "LC_POLYMARKER "}, 108: { 16 , "LC_WIDE "}, 109: { 32 , "LC_STYLED "}, 110: { 64 , "LC_WIDESTYLED "}, 111: { 128 , "LC_INTERIORS "}}; 112: 113: 114: /* Polygonal Capabilities */ 115: #define NPolygonalCaps 10 116: LookupEntry PolygonalCaps[NPolygonalCaps] = 117: {{ 0 , "PC_NONE "}, 118: { 1 , "PC_POLYGON "}, 119: { 2 , "PC_RECTANGLE "}, 120: { 4 , "PC_WINDPOLYGON"}, 121: { 4 , "PC_TRAPEZOID "}, // HACK two 4's ??? 122: { 8 , "PC_SCANLINE "}, 123: { 16 , "PC_WIDE "}, 124: { 32 , "PC_STYLED "}, 125: { 64 , "PC_WIDESTYLED "}, 126: { 128 , "PC_INTERIORS "}}; 127: 128: 129: /* Clip Capabilities */ 130: #define NClipCaps 2 131: LookupEntry ClipCaps[NClipCaps] = 132: {{ 0 , "CP_NONE "}, 133: { 1 , "CP_RECTANGLE"}}; 134: 135: 136: /* Text Capabilities */ 137: #define NTextCaps 16 138: LookupEntry TextCaps[NTextCaps] = 139: {{ 0x0001 , "TC_OP_CHARACTER"}, 140: { 0x0002 , "TC_OP_STROKE "}, 141: { 0x0004 , "TC_CP_STROKE "}, 142: { 0x0008 , "TC_CR_90 "}, 143: { 0x0010 , "TC_CR_ANY "}, 144: { 0x0020 , "TC_SF_X_YINDEP "}, 145: { 0x0040 , "TC_SA_DOUBLE "}, 146: { 0x0080 , "TC_SA_INTEGER "}, 147: { 0x0100 , "TC_SA_CONTIN "}, 148: { 0x0200 , "TC_EA_DOUBLE "}, 149: { 0x0400 , "TC_IA_ABLE "}, 150: { 0x0800 , "TC_UA_ABLE "}, 151: { 0x1000 , "TC_SO_ABLE "}, 152: { 0x2000 , "TC_RA_ABLE "}, 153: { 0x4000 , "TC_VA_ABLE "}, 154: { 0x8000 , "TC_RESERVED "}}; 155: 156: 157: /* Raster Capabilities */ 158: #define NRasterCaps 12 159: LookupEntry RasterCaps[NRasterCaps] = 160: {{ 1 , "RC_BITBLT "}, 161: { 2 , "RC_BANDING "}, 162: { 4 , "RC_SCALING "}, 163: { 8 , "RC_BITMAP64 "}, 164: { 0x0010, "RC_GDI20_OUTPUT "}, 165: { 0x0080, "RC_DI_BITMAP "}, 166: { 0x0100, "RC_PALETTE "}, 167: { 0x0200, "RC_DIBTODEV "}, 168: { 0x0400, "RC_BIGFONT "}, 169: { 0x0800, "RC_STRETCHBLT "}, 170: { 0x1000, "RC_FLOODFILL "}, 171: { 0x2000, "RC_STRETCHDIB "}};
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.