SkinToolBar.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #if !defined(AFX_SKINTOOLBAR_H__6DB4E733_2851_4C9E_B481_0A63C974C4C0__INCLUDED_)
  2. #define AFX_SKINTOOLBAR_H__6DB4E733_2851_4C9E_B481_0A63C974C4C0__INCLUDED_
  3. #include "EnBitmap.h" // Added by ClassView
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // SkinToolBar.h : header file
  8. //
  9. #include "SkinButton.h"
  10. #include "SkinStatic.h"
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CSkinToolBar window
  13. class CSkinToolBar : public CSkinStatic
  14. {
  15. // Construction
  16. public:
  17. CSkinToolBar();
  18. // Attributes
  19. public:
  20. // Operations
  21. public:
  22. // Overrides
  23. // Implementation
  24. public:
  25. COLORREF m_crText;
  26. void SetTextColor(COLORREF cr){m_crText=cr;}
  27. void SetBasicCommands(CList<UINT, UINT> &ltConmmand);
  28. BOOL m_bShow;
  29. CEnBitmap m_bmpToolBar;
  30. CPtrList m_ptButton;
  31. CArray <CRect,CRect&> m_rcButton;
  32. CList<UINT, UINT> m_ltCommands;
  33. int nSelectedButton;
  34. void RecalcLayout();
  35. virtual ~CSkinToolBar();
  36. BOOL LoadTBImage(UINT uIDRes,COLORREF crBack);
  37. void SetSizes( SIZE sizeButton, SIZE sizeImage );
  38. void ClearMemory();
  39. // Generated message map functions
  40. protected:
  41. //{{AFX_MSG(CSkinToolBar)
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. };
  45. #endif // !defined(AFX_SKINTOOLBAR_H__6DB4E733_2851_4C9E_B481_0A63C974C4C0__INCLUDED_)