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.

121 lines
2.6 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: chicago.h
  3. *
  4. * CD Playing application - support for Chicago
  5. *
  6. *
  7. * Created: 19-04-94
  8. * Author: Stephen Estrop [StephenE]
  9. *
  10. * Copyright (c) 1993 Microsoft Corporation
  11. \**************************************************************************/
  12. /* -------------------------------------------------------------------------
  13. ** Button helper functions
  14. ** -------------------------------------------------------------------------
  15. */
  16. void
  17. PatB(
  18. HDC hdc,
  19. int x,
  20. int y,
  21. int dx,
  22. int dy,
  23. DWORD rgb
  24. );
  25. void
  26. CheckSysColors(
  27. void
  28. );
  29. extern DWORD rgbFace;
  30. extern DWORD rgbShadow;
  31. extern DWORD rgbHilight;
  32. extern DWORD rgbFrame;
  33. extern int nSysColorChanges;
  34. #ifndef NOBITMAPBTN
  35. /* -------------------------------------------------------------------------
  36. ** Bitmap button styles
  37. ** -------------------------------------------------------------------------
  38. */
  39. /*
  40. ** If you want little tool tips to popup next to your toolbar buttons
  41. ** use the style below.
  42. */
  43. #define BBS_TOOLTIPS 0x00000100L /* make/use a tooltips control */
  44. /* -------------------------------------------------------------------------
  45. ** Bitmap button states
  46. ** -------------------------------------------------------------------------
  47. */
  48. #define BTNSTATE_PRESSED ODS_SELECTED
  49. #define BTNSTATE_DISABLED ODS_DISABLED
  50. #define BTNSTATE_HAS_FOCUS ODS_FOCUS
  51. /* -------------------------------------------------------------------------
  52. ** Bitmap button structures
  53. ** -------------------------------------------------------------------------
  54. */
  55. typedef struct {
  56. int iBitmap; /* Index into mondo bitmap of this button's picture */
  57. UINT uId; /* Button ID */
  58. UINT fsState; /* Button's state, see BTNSTATE_XXXX above */
  59. } BITMAPBTN, NEAR *PBITMAPBTN, FAR *LPBITMAPBTN;
  60. /* -------------------------------------------------------------------------
  61. ** Bitmap buttons public interfaces
  62. ** -------------------------------------------------------------------------
  63. */
  64. BOOL WINAPI
  65. BtnCreateBitmapButtons(
  66. HWND hwndOwner,
  67. HINSTANCE hBMInst,
  68. UINT wBMID,
  69. UINT uStyle,
  70. LPBITMAPBTN lpButtons,
  71. int nButtons,
  72. int dxBitmap,
  73. int dyBitmap
  74. );
  75. void WINAPI
  76. BtnDestroyBitmapButtons(
  77. HWND hwndOwner
  78. );
  79. void WINAPI
  80. BtnDrawButton(
  81. HWND hwndOwner,
  82. HDC hdc,
  83. int dxButton,
  84. int dyButton,
  85. LPBITMAPBTN lpButton
  86. );
  87. void WINAPI
  88. BtnDrawFocusRect(
  89. HDC hdc,
  90. const RECT *lpRect,
  91. UINT fsState
  92. );
  93. void WINAPI
  94. BtnUpdateColors(
  95. HWND hwndOwner
  96. );
  97. #endif
  98.