Annotation of q_a/samples/streblt/streblt.h, revision 1.1

1.1     ! root        1: /* streblt.h - header file for the streblt demonstration program. */
        !             2: 
        !             3: 
        !             4: /* function prototypes for the window procedures. */
        !             5: long FAR PASCAL MainWndProc(HWND, UINT, UINT, LONG);
        !             6: long FAR PASCAL DlgProc(HWND, UINT, UINT, LONG);
        !             7: 
        !             8: VOID DrawGrids (HDC, int, int);
        !             9: 
        !            10: /* Top dialog item IDs */
        !            11: #define  DID_X           100
        !            12: #define  DID_Y           101
        !            13: #define  DID_WIDTH       102
        !            14: #define  DID_HEIGHT      103
        !            15: #define  DID_XSRC        104
        !            16: #define  DID_YSRC        105
        !            17: #define  DID_SRCWIDTH    106
        !            18: #define  DID_SRCHEIGHT   107
        !            19: 
        !            20: #define  DID_ROP0        110
        !            21: #define  DID_ROP1        111
        !            22: #define  DID_ROP2        112
        !            23: #define  DID_NEWSRC      116
        !            24: 
        !            25: #define  DID_DRAW        120
        !            26: 
        !            27: #define  DID_CB_MODE     150
        !            28: #define  DID_CB_PATTERN  151
        !            29: #define  DID_CB_ROPS     152
        !            30: 
        !            31: 
        !            32: /* accelerator IDs */
        !            33: #define AID_PASTE       55
        !            34: #define AID_COPY        56
        !            35: #define AID_CYCLE       57
        !            36: 
        !            37: 
        !            38: 
        !            39: /* Misc. defines for size, color, and appearance of drawing. */
        !            40: #define GRIDCOLOR  (COLORREF) 0x01000006
        !            41: #define DIALOGHEIGHT  90
        !            42: #define SEPARATORWIDTH 4
        !            43: #define MAXCHARS      32
        !            44: #define INC            5
        !            45: 
        !            46: 
        !            47: 
        !            48: 
        !            49: /* other user messages sent to the main window or the dialog */
        !            50: #define WM_PUTUPDESTRECT WM_USER+20
        !            51: #define WM_PUTUPSRCRECT  WM_USER+21
        !            52: #define WM_STRETCHBLT    WM_USER+23
        !            53: 
        !            54: 
        !            55: 
        !            56: 
        !            57: /* structure for the lookup tables.  */
        !            58: typedef struct tagLookupEntry{
        !            59:     int     Value;
        !            60:     char    String[30];
        !            61: } LookupEntry;
        !            62: 
        !            63: 
        !            64: #define NMODES  5
        !            65: LookupEntry  strebltModes[NMODES] =
        !            66:     {{ 1, "BLACKONWHITE"},
        !            67:      { 2, "COLORONCOLOR"},
        !            68:      { 3, "WHITEONBLACK"},
        !            69:      { 4, "BLEND       "},
        !            70:      { 5, "HALFTONE    "}};
        !            71: 
        !            72: 
        !            73: #define NROPS  15
        !            74: LookupEntry  StandardROPs[NROPS] =
        !            75:     {{ 0x00CC0020, "SRCCOPY"    },
        !            76:      { 0x00EE0086, "SRCPAINT"   },
        !            77:      { 0x008800C6, "SRCAND"     },
        !            78:      { 0x00660046, "SRCINVERT"  },
        !            79:      { 0x00440328, "SRCERASE"   },
        !            80:      { 0x00330008, "NOTSRCCOPY" },
        !            81:      { 0x001100A6, "NOTSRCERASE"},
        !            82:      { 0x00C000CA, "MERGECOPY"  },
        !            83:      { 0x00BB0226, "MERGEPAINT" },
        !            84:      { 0x00F00021, "PATCOPY"    },
        !            85:      { 0x00FB0A09, "PATPAINT"   },
        !            86:      { 0x005A0049, "PATINVERT"  },
        !            87:      { 0x00550009, "DSTINVERT"  },
        !            88:      { 0x00000042, "BLACKNESS"  },
        !            89:      { 0x00FF0062, "WHITENESS"  }};
        !            90: 
        !            91: 
        !            92: #define NPATTERNS  6
        !            93: LookupEntry Patterns[NPATTERNS] =
        !            94:     {{  0, "WHITE_BRUSH "},
        !            95:      {  1, "LTGRAY_BRUSH"},
        !            96:      {  2, "GRAY_BRUSH  "},
        !            97:      {  3, "DKGRAY_BRUSH"},
        !            98:      {  4, "BLACK_BRUSH "},
        !            99:      {  5, "NULL_BRUSH  "}};

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.