Annotation of mstools/ole20/samples/bttncur/bttncuri.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * BTTNCURI.H
                      3:  *
                      4:  * Private include file for the Button Images and Cursors DLL.
                      5:  *
                      6:  * Copyright (c)1992-1993 Microsoft Corporation, All Right Reserved,
                      7:  * as applied to redistribution of this source code in source form
                      8:  * License is granted to use of compiled code in shipped binaries.
                      9:  */
                     10: 
                     11: #ifdef __cplusplus
                     12: extern "C"
                     13:     {
                     14: #endif
                     15: 
                     16: //Function prototypes.
                     17: 
                     18: //BTTNCUR.C
                     19: //HANDLE FAR  PASCAL LibMain(HANDLE, WORD, WORD, LPSTR);
                     20: //void   FAR  PASCAL WEP(int);
                     21: static BOOL        ToolButtonInit(void);
                     22: static void        ToolButtonFree(void);
                     23: static HBRUSH      HBrushDitherCreate(COLORREF, COLORREF);
                     24: static void        DrawBlankButton(HDC, int, int, int, int, BOOL, COLORREF FAR *);
                     25: static void        PatB(HDC, int, int, int, int, COLORREF);
                     26: static void        MaskCreate(UINT, int, int, int, int, int, int, UINT);
                     27: 
                     28: 
                     29: //CURSORS.C
                     30: void               CursorsCache(HINSTANCE);
                     31: void               CursorsFree(void);
                     32: 
                     33: 
                     34: 
                     35: /*
                     36:  * Wierd Wild Wooly Waster (raster) Ops for special bltting.  See the
                     37:  * Windows SDK reference on Raster Operation Codes for explanation of
                     38:  * these.  The DSPDxax and PSDPxax is a reverse-polish notation for
                     39:  * operations where D==Destination, S==Source, P==Patterm, a==AND,
                     40:  * x==XOR.  Both of these codes are actually described in Programming
                     41:  * Windows by Charles Petzold, Second Edition, pages 622-624.
                     42:  */
                     43: #define ROP_DSPDxax  0x00E20746
                     44: #define ROP_PSDPxax  0x00B8074A
                     45: 
                     46: 
                     47: /*
                     48:  * Color indices into an array of standard hard-coded black, white, and
                     49:  * gray colors.
                     50:  */
                     51: 
                     52: #define STDCOLOR_BLACK      0
                     53: #define STDCOLOR_DKGRAY     1
                     54: #define STDCOLOR_LTGRAY     2
                     55: #define STDCOLOR_WHITE      3
                     56: 
                     57: /*
                     58:  * Color indices into an array of system colors, matching those in
                     59:  * the hard-coded array for the colors they replace.
                     60:  */
                     61: 
                     62: #define SYSCOLOR_TEXT       0
                     63: #define SYSCOLOR_SHADOW     1
                     64: #define SYSCOLOR_FACE       2
                     65: #define SYSCOLOR_HILIGHT    3
                     66: 
                     67: 
                     68: /*
                     69:  * Button types, used internally to distinguish command buttons from
                     70:  * attribute buttons to enforce three-state or six-state possibilities.
                     71:  * Command buttons can only have three states (up, mouse down, disabled)
                     72:  * while attribute buttons add (down, down disabled, and indeterminate).
                     73:  */
                     74: 
                     75: #define BUTTONTYPE_COMMAND      0
                     76: #define BUTTONTYPE_ATTRIBUTE    1
                     77: 
                     78: 
                     79: #ifdef __cplusplus
                     80:     }
                     81: #endif

unix.superglobalmegacorp.com

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