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

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