Annotation of mstools/samples/maskblt/maskblt.h, revision 1.1.1.2

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