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.

123 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. #if WINVER >= 0x0400
  35. #ifndef NOBITMAPBTN
  36. /* -------------------------------------------------------------------------
  37. ** Bitmap button styles
  38. ** -------------------------------------------------------------------------
  39. */
  40. /*
  41. ** If you want little tool tips to popup next to your toolbar buttons
  42. ** use the style below.
  43. */
  44. #define BBS_TOOLTIPS 0x00000100L /* make/use a tooltips control */
  45. /* -------------------------------------------------------------------------
  46. ** Bitmap button states
  47. ** -------------------------------------------------------------------------
  48. */
  49. #define BTNSTATE_PRESSED ODS_SELECTED
  50. #define BTNSTATE_DISABLED ODS_DISABLED
  51. #define BTNSTATE_HAS_FOCUS ODS_FOCUS
  52. /* -------------------------------------------------------------------------
  53. ** Bitmap button structures
  54. ** -------------------------------------------------------------------------
  55. */
  56. typedef struct {
  57. int iBitmap; /* Index into mondo bitmap of this button's picture */
  58. UINT uId; /* Button ID */
  59. UINT fsState; /* Button's state, see BTNSTATE_XXXX above */
  60. } BITMAPBTN, NEAR *PBITMAPBTN, FAR *LPBITMAPBTN;
  61. /* -------------------------------------------------------------------------
  62. ** Bitmap buttons public interfaces
  63. ** -------------------------------------------------------------------------
  64. */
  65. BOOL WINAPI
  66. BtnCreateBitmapButtons(
  67. HWND hwndOwner,
  68. HINSTANCE hBMInst,
  69. UINT wBMID,
  70. UINT uStyle,
  71. LPBITMAPBTN lpButtons,
  72. int nButtons,
  73. int dxBitmap,
  74. int dyBitmap
  75. );
  76. void WINAPI
  77. BtnDestroyBitmapButtons(
  78. HWND hwndOwner
  79. );
  80. void WINAPI
  81. BtnDrawButton(
  82. HWND hwndOwner,
  83. HDC hdc,
  84. int dxButton,
  85. int dyButton,
  86. LPBITMAPBTN lpButton
  87. );
  88. void WINAPI
  89. BtnDrawFocusRect(
  90. HDC hdc,
  91. const RECT *lpRect,
  92. UINT fsState
  93. );
  94. void WINAPI
  95. BtnUpdateColors(
  96. HWND hwndOwner
  97. );
  98. #endif
  99. #endif