home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / inole / bttncuri.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  2KB  |  82 lines

  1. /*
  2.  * BTTNCURI.H
  3.  * Buttons & Cursors
  4.  *
  5.  * Private include file for the Button Images and Cursors DLL.
  6.  *
  7.  * Copyright (c)1992-1995 Microsoft Corporation, All Right Reserved
  8.  *
  9.  * Kraig Brockschmidt, Microsoft
  10.  * Internet  :  kraigb@microsoft.com
  11.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  12.  */
  13.  
  14. #ifndef _BTTNCURI_H_
  15. #define _BTTNCURI_H_
  16.  
  17.  
  18. #ifdef __cplusplus
  19. extern "C"
  20.     {
  21. #endif
  22.  
  23. //Function prototypes.
  24.  
  25. //BTTNCUR.C
  26. BOOL     ToolButtonInit(HINSTANCE);
  27. void     ToolButtonFree(void);
  28. HBRUSH   HBrushDitherCreate(COLORREF, COLORREF);
  29. void     DrawBlankButton(HDC, int, int, int, int, BOOL, COLORREF *);
  30.  
  31. void     PatB(HDC, int, int, int, int, COLORREF);
  32. void     MaskCreate(UINT, int, int, int, int, int, int, UINT);
  33.  
  34.  
  35. //CURSORS.C
  36. void        CursorsCache(HINSTANCE);
  37. void        CursorsFree(void);
  38.  
  39.  
  40. #define ROP_DSPDxax  0x00E20746
  41. #define ROP_PSDPxax  0x00B8074A
  42.  
  43.  
  44. /*
  45.  * Color indices into an array of standard hard-coded black, white,
  46.  * and gray colors.
  47.  */
  48.  
  49. #define STDCOLOR_BLACK      0
  50. #define STDCOLOR_DKGRAY     1
  51. #define STDCOLOR_LTGRAY     2
  52. #define STDCOLOR_WHITE      3
  53.  
  54. /*
  55.  * Color indices into an array of system colors, matching those in
  56.  * the hard-coded array for the colors they replace.
  57.  */
  58.  
  59. #define SYSCOLOR_TEXT       0
  60. #define SYSCOLOR_SHADOW     1
  61. #define SYSCOLOR_FACE       2
  62. #define SYSCOLOR_HILIGHT    3
  63.  
  64.  
  65. /*
  66.  * Button types, used internally to distinguish command buttons from
  67.  * attribute buttons to enforce three-state or six-state
  68.  * possibilities.  Command buttons can only have three states (up,
  69.  * mouse down, disabled) while attribute buttons add (down, down
  70.  * disabled, and indeterminate).
  71.  */
  72.  
  73. #define BUTTONTYPE_COMMAND      0
  74. #define BUTTONTYPE_ATTRIBUTE    1
  75.  
  76.  
  77. #ifdef __cplusplus
  78.     }
  79. #endif
  80.  
  81. #endif //_BTTNCURI_H_
  82.