UISlider.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef __UISLIDER_H__
  2. #define __UISLIDER_H__
  3. #pragma once
  4. namespace DuiLib
  5. {
  6. class UILIB_API CSliderUI : public CProgressUI
  7. {
  8. DECLARE_DUICONTROL(CSliderUI)
  9. public:
  10. CSliderUI();
  11. LPCTSTR GetClass() const;
  12. UINT GetControlFlags() const;
  13. LPVOID GetInterface(LPCTSTR pstrName);
  14. void SetEnabled(bool bEnable = true);
  15. int GetChangeStep();
  16. void SetChangeStep(int step);
  17. void SetThumbSize(SIZE szXY);
  18. RECT GetThumbRect() const;
  19. LPCTSTR GetThumbImage() const;
  20. void SetThumbImage(LPCTSTR pStrImage);
  21. LPCTSTR GetThumbHotImage() const;
  22. void SetThumbHotImage(LPCTSTR pStrImage);
  23. LPCTSTR GetThumbPushedImage() const;
  24. void SetThumbPushedImage(LPCTSTR pStrImage);
  25. void DoEvent(TEventUI& event);
  26. void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
  27. void PaintForeImage(HDC hDC);
  28. void SetValue(int nValue);
  29. void SetCanSendMove(bool bCanSend);
  30. bool GetCanSendMove() const;
  31. protected:
  32. SIZE m_szThumb;
  33. UINT m_uButtonState;
  34. int m_nStep;
  35. CDuiString m_sThumbImage;
  36. CDuiString m_sThumbHotImage;
  37. CDuiString m_sThumbPushedImage;
  38. CDuiString m_sImageModify;
  39. bool m_bSendMove;
  40. };
  41. }
  42. #endif // __UISLIDER_H__