UIProgress.h 790 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __UIPROGRESS_H__
  2. #define __UIPROGRESS_H__
  3. #pragma once
  4. namespace DuiLib
  5. {
  6. class UILIB_API CProgressUI : public CLabelUI
  7. {
  8. public:
  9. CProgressUI();
  10. LPCTSTR GetClass() const;
  11. LPVOID GetInterface(LPCTSTR pstrName);
  12. bool IsHorizontal();
  13. void SetHorizontal(bool bHorizontal = true);
  14. int GetMinValue() const;
  15. void SetMinValue(int nMin);
  16. int GetMaxValue() const;
  17. void SetMaxValue(int nMax);
  18. int GetValue() const;
  19. void SetValue(int nValue);
  20. LPCTSTR GetForeImage() const;
  21. void SetForeImage(LPCTSTR pStrImage);
  22. void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
  23. void PaintStatusImage(HDC hDC);
  24. protected:
  25. bool m_bHorizontal;
  26. int m_nMax;
  27. int m_nMin;
  28. int m_nValue;
  29. TDrawInfo m_diFore;
  30. };
  31. } // namespace DuiLib
  32. #endif // __UIPROGRESS_H__