Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.4 KiB

  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. #ifdef __cplusplus
  11. extern "C"
  12. {
  13. #endif
  14. //Function prototypes.
  15. //BTTNCUR.C
  16. #ifdef WIN32
  17. extern BOOL WINAPI _CRT_INIT(HINSTANCE, DWORD, LPVOID);
  18. extern _cexit(void);
  19. #else
  20. HANDLE FAR PASCAL LibMain(HANDLE, WORD, WORD, LPSTR);
  21. #endif
  22. BOOL FInitialize(HANDLE);
  23. void FAR PASCAL WEP(int);
  24. static BOOL ToolButtonInit(void);
  25. static void ToolButtonFree(void);
  26. static HBRUSH HBrushDitherCreate(COLORREF, COLORREF);
  27. static void DrawBlankButton(HDC, int, int, int, int, BOOL, COLORREF FAR *);
  28. static void PatB(HDC, int, int, int, int, COLORREF);
  29. static void MaskCreate(UINT, int, int, int, int, int, int, UINT);
  30. //CURSORS.C
  31. void CursorsCache(HINSTANCE);
  32. void CursorsFree(void);
  33. /*
  34. * Wierd Wild Wooly Waster (raster) Ops for special bltting. See the
  35. * Windows SDK reference on Raster Operation Codes for explanation of
  36. * these. The DSPDxax and PSDPxax is a reverse-polish notation for
  37. * operations where D==Destination, S==Source, P==Patterm, a==AND,
  38. * x==XOR. Both of these codes are actually described in Programming
  39. * Windows by Charles Petzold, Second Edition, pages 622-624.
  40. */
  41. #define ROP_DSPDxax 0x00E20746
  42. #define ROP_PSDPxax 0x00B8074A
  43. /*
  44. * Color indices into an array of standard hard-coded black, white, and
  45. * gray colors.
  46. */
  47. #define STDCOLOR_BLACK 0
  48. #define STDCOLOR_DKGRAY 1
  49. #define STDCOLOR_LTGRAY 2
  50. #define STDCOLOR_WHITE 3
  51. /*
  52. * Color indices into an array of system colors, matching those in
  53. * the hard-coded array for the colors they replace.
  54. */
  55. #define SYSCOLOR_TEXT 0
  56. #define SYSCOLOR_SHADOW 1
  57. #define SYSCOLOR_FACE 2
  58. #define SYSCOLOR_HILIGHT 3
  59. /*
  60. * Button types, used internally to distinguish command buttons from
  61. * attribute buttons to enforce three-state or six-state possibilities.
  62. * Command buttons can only have three states (up, mouse down, disabled)
  63. * while attribute buttons add (down, down disabled, and indeterminate).
  64. */
  65. #define BUTTONTYPE_COMMAND 0
  66. #define BUTTONTYPE_ATTRIBUTE 1
  67. #ifdef __cplusplus
  68. }
  69. #endif