WinXPButtonST.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // Class: CWinXPButtonST
  3. //
  4. // Compiler: Visual C++
  5. // eMbedded Visual C++
  6. // Tested on: Visual C++ 6.0
  7. // Windows CE 3.0
  8. //
  9. // Created: 03/September/2001
  10. // Updated: 25/November/2002
  11. //
  12. // Author: Davide Calabro' davide_calabro@yahoo.com
  13. //
  14. // Disclaimer
  15. // ----------
  16. // THIS SOFTWARE AND THE ACCOMPANYING FILES ARE DISTRIBUTED "AS IS" AND WITHOUT
  17. // ANY WARRANTIES WHETHER EXPRESSED OR IMPLIED. NO REPONSIBILITIES FOR POSSIBLE
  18. // DAMAGES OR EVEN FUNCTIONALITY CAN BE TAKEN. THE USER MUST ASSUME THE ENTIRE
  19. // RISK OF USING THIS SOFTWARE.
  20. //
  21. // Terms of use
  22. // ------------
  23. // THIS SOFTWARE IS FREE FOR PERSONAL USE OR FREEWARE APPLICATIONS.
  24. // IF YOU USE THIS SOFTWARE IN COMMERCIAL OR SHAREWARE APPLICATIONS YOU
  25. // ARE GENTLY ASKED TO DONATE 5$ (FIVE U.S. DOLLARS) TO THE AUTHOR:
  26. //
  27. // Davide Calabro'
  28. // P.O. Box 65
  29. // 21019 Somma Lombardo (VA)
  30. // Italy
  31. //
  32. #ifndef _WINXPBUTTONST_H_
  33. #define _WINXPBUTTONST_H_
  34. #if _MSC_VER > 1000
  35. #pragma once
  36. #endif // _MSC_VER > 1000
  37. #ifdef UNDER_CE
  38. #include "CeBtnST.h"
  39. #define BASE_BUTTONST CCeButtonST
  40. #else
  41. #include "BtnST.h"
  42. #define BASE_BUTTONST CButtonST
  43. #endif
  44. class CWinXPButtonST : public BASE_BUTTONST
  45. {
  46. public:
  47. CWinXPButtonST();
  48. virtual ~CWinXPButtonST();
  49. DWORD SetRounded(BOOL bRounded, BOOL bRepaint = TRUE);
  50. protected:
  51. virtual DWORD OnDrawBackground(CDC* pDC, CRect* pRect);
  52. virtual DWORD OnDrawBorder(CDC* pDC, CRect* pRect);
  53. private:
  54. BOOL m_bIsRounded; // Borders must be rounded?
  55. };
  56. #endif