2#include "GUISliderOwnerDrawnBase.h"
9 class FL_EXPORT CGUISliderOwnerDrawn :
public CGUISliderOwnerDrawnBase
25 CGUISliderOwnerDrawn(CWnd* pParentWnd, EOrientation eOrientation = EOrientation_Horizontal);
34 virtual ~CGUISliderOwnerDrawn();
47 virtual const CResult CalcSliderRegion(CRect* pRect)
override;
58 virtual void Draw(CDC* pDC)
const override;
71 void SetRangeMin(T tMin,
bool bRedraw =
false);
84 void SetRangeMax(T tMax,
bool bRedraw =
false);
99 void SetRange(T tMin, T tMax,
bool bRedraw =
false);
110 T GetRangeMax()
const;
121 T GetRangeMin()
const;
134 void GetRange(T& tMin, T& tMax)
const;
147 void SetUnit(T tUnit,
bool bRedraw =
false);
172 void SetValue(T tValue,
bool bRedraw,
bool bSendMessage =
true);
185 void IncreaseValue(T tValue,
bool bRedraw);
198 void DecreaseValue(T tValue,
bool bRedraw);
211 void IncreaseTick(int32_t i32Tick,
bool bRedraw);
224 void DecreaseTick(int32_t i32Tick,
bool bRedraw);
237 void IncreasePos(int32_t i32PosDelta,
bool bRedraw);
250 void DecreasePos(int32_t i32PosDelta,
bool bRedraw);
274 int32_t GetPosByValue(T tValue)
const;
287 T GetValueByPos(int32_t i32Pos)
const;
296 virtual void UpdateSlider()
override;
309 T GetRemainder(T tValue)
const;
322 virtual void OnMouseWheel(
const CPoint& ptPoint,
bool bUpWheel);
323 virtual void OnLButtonUp(
const CPoint& ptPoint)
override;
324 virtual void OnMouseMove(
const CPoint& ptPoint)
override;
327 virtual void SetPos(int32_t i32Pos,
bool bSetValue,
bool bSendMsg,
bool bRedraw)
override;