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.

58 lines
2.3 KiB

  1. /*-----------------------------------------------------------------------------+
  2. | SBUTTON.H |
  3. | |
  4. | Implements "3-D" buttons |
  5. | |
  6. | (C) Copyright Microsoft Corporation 1992. All rights reserved. |
  7. | |
  8. | Revision History |
  9. | Created by Todd Laney |
  10. | Munged 3/27/89 by Robert Bunney |
  11. | 7/26/89 - revised by Todd Laney to handle multi-res |
  12. | bitmaps. transparent color bitmaps |
  13. | windows 3 support |
  14. | Oct-1992 MikeTri Ported to WIN32 / WIN16 common code |
  15. | |
  16. +-----------------------------------------------------------------------------*/
  17. #define BS_STRETCH 0x8000L
  18. #define BS_NOFOCUS 0x4000L
  19. #define BS_STATIC 0x2000L
  20. /*
  21. Sliders.
  22. Sliders ain't got no style or sophistication.
  23. The Cat
  24. */
  25. // Useful window messages for sliders
  26. #define SSB_GETPOS (WM_USER)
  27. #define SSB_SETPOS (WM_USER+1)
  28. #define SSB_GETRANGE (WM_USER+2)
  29. #define SSB_SETRANGE (WM_USER+3)
  30. #define SSB_GETWIDTHS (WM_USER+4)
  31. //
  32. // Init routine, will register the various classes.
  33. //
  34. BOOL FAR PASCAL ControlInit (HANDLE hPrev, HANDLE hInst);
  35. void FAR PASCAL ControlCleanup (void);
  36. /* objects from sbutton.c */
  37. extern HBRUSH hbrGray;
  38. extern HBRUSH hbrButtonFace;
  39. extern HBRUSH hbrButtonShadow;
  40. extern HBRUSH hbrButtonText;
  41. extern HBRUSH hbrButtonHighLight;
  42. extern HBRUSH hbrWindowFrame;
  43. extern HBRUSH hbrWindowColour;
  44. extern DWORD rgbButtonHighLight;
  45. extern DWORD rgbButtonFocus;
  46. extern DWORD rgbButtonFace;
  47. extern DWORD rgbButtonText;
  48. extern DWORD rgbButtonShadow;
  49. extern DWORD rgbWindowFrame;
  50. extern DWORD rgbWindowColour;