UISlider.h 960 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef __UISLIDER_H__
  2. #define __UISLIDER_H__
  3. #pragma once
  4. namespace DuiLib
  5. {
  6. class UILIB_API CSliderUI : public CProgressUI
  7. {
  8. public:
  9. CSliderUI();
  10. LPCTSTR GetClass() const;
  11. UINT GetControlFlags() const;
  12. LPVOID GetInterface(LPCTSTR pstrName);
  13. void SetEnabled(bool bEnable = true);
  14. int GetChangeStep();
  15. void SetChangeStep(int step);
  16. void SetThumbSize(SIZE szXY);
  17. RECT GetThumbRect() const;
  18. LPCTSTR GetThumbImage() const;
  19. void SetThumbImage(LPCTSTR pStrImage);
  20. LPCTSTR GetThumbHotImage() const;
  21. void SetThumbHotImage(LPCTSTR pStrImage);
  22. LPCTSTR GetThumbPushedImage() const;
  23. void SetThumbPushedImage(LPCTSTR pStrImage);
  24. void DoEvent(TEventUI& event);
  25. void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
  26. void PaintStatusImage(HDC hDC);
  27. protected:
  28. SIZE m_szThumb;
  29. UINT m_uButtonState;
  30. int m_nStep;
  31. TDrawInfo m_diThumb;
  32. TDrawInfo m_diThumbHot;
  33. TDrawInfo m_diThumbPushed;
  34. };
  35. }
  36. #endif // __UISLIDER_H__