UIGroupBox.h 845 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __UIGROUPBOX_H__
  2. #define __UIGROUPBOX_H__
  3. #pragma once
  4. namespace DuiLib
  5. {
  6. class UILIB_API CGroupBoxUI : public CVerticalLayoutUI
  7. {
  8. DECLARE_DUICONTROL(CGroupBoxUI)
  9. public:
  10. CGroupBoxUI();
  11. ~CGroupBoxUI();
  12. LPCTSTR GetClass() const;
  13. LPVOID GetInterface(LPCTSTR pstrName);
  14. void SetTextColor(DWORD dwTextColor);
  15. DWORD GetTextColor() const;
  16. void SetDisabledTextColor(DWORD dwTextColor);
  17. DWORD GetDisabledTextColor() const;
  18. void SetFont(int index);
  19. int GetFont() const;
  20. protected:
  21. //Paint
  22. virtual void PaintText(HDC hDC);
  23. virtual void PaintBorder(HDC hDC);
  24. virtual void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
  25. private:
  26. SIZE CalcrectSize(SIZE szAvailable);
  27. protected:
  28. DWORD m_dwTextColor;
  29. DWORD m_dwDisabledTextColor;
  30. int m_iFont;
  31. UINT m_uTextStyle;
  32. };
  33. }
  34. #endif // __UIGROUPBOX_H__