2#include "GUISliderOwnerDrawn.h"
9 class FL_EXPORT CGUISliderOwnerDrawnDualHandle :
public CGUISliderOwnerDrawnBase
25 CGUISliderOwnerDrawnDualHandle(CWnd* pParentWnd, EOrientation eOrientation = EOrientation_Horizontal);
34 virtual ~CGUISliderOwnerDrawnDualHandle();
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);
174 void SetExponentialBase(T tExponentialBase = 10,
bool bRedraw =
false);
185 T GetExponentialBase()
const;
200 void SetMinValue(T tValue,
bool bRedraw,
bool bSendMessage =
true);
201 void SetMaxValue(T tValue,
bool bRedraw,
bool bSendMessage =
true);
214 void IncreaseMinValue(T tValue,
bool bRedraw);
215 void IncreaseMaxValue(T tValue,
bool bRedraw);
228 void DecreaseMinValue(T tValue,
bool bRedraw);
229 void DecreaseMaxValue(T tValue,
bool bRedraw);
242 void IncreaseMinPos(int32_t i32PosDelta,
bool bRedraw);
243 void IncreaseMaxPos(int32_t i32PosDelta,
bool bRedraw);
256 void DecreaseMinPos(int32_t i32PosDelta,
bool bRedraw);
257 void DecreaseMaxPos(int32_t i32PosDelta,
bool bRedraw);
270 void IncreaseMinTick(int32_t i32Tick,
bool bRedraw);
271 void IncreaseMaxTick(int32_t i32Tick,
bool bRedraw);
284 void DecreaseMinTick(int32_t i32Tick,
bool bRedraw);
285 void DecreaseMaxTick(int32_t i32Tick,
bool bRedraw);
296 T GetMinValue()
const;
297 T GetMaxValue()
const;
310 int32_t GetPosByValue(T tValue)
const;
323 T GetValueByPos(int32_t i32Pos)
const;
332 virtual void UpdateSliderMin();
333 virtual void UpdateSliderMax();
346 T GetRemainder(T tValue)
const;
359 virtual const CResult SetHandleSlideTogether(
bool bSet =
true);
371 virtual bool IsHandleSlidingTogether()
const;
384 virtual void OnMouseWheel(
const CPoint& ptPoint,
bool bUpWheel);
395 virtual void OnLButtonDown(
const CPoint& ptPoint)
override;
396 virtual void OnLButtonUp(
const CPoint& ptPoint)
override;
397 virtual void OnMouseMove(
const CPoint& ptPoint)
override;
399 virtual ESliderArea HitTest(
const CPoint& ptPoint)
const override;
402 virtual void SetMinPos(int32_t i32Pos,
bool bSetValue,
bool bSendMsg,
bool bRedraw);
403 virtual void SetMaxPos(int32_t i32Pos,
bool bSetValue,
bool bSendMsg,
bool bRedraw);
404 virtual void RecalculateLayoutMetrics()
override;
407 bool m_bHandleSlidingTogether;
412 int32_t m_i32PosMinOnLBtnDown;
413 int32_t m_i32PosMaxOnLBtnDown;
417 mutable T m_tValueMin;
418 mutable T m_tValueMax;
420 T m_tExponentialBase;
Definition D2DObject.h:12
ESliderArea
Scroll Bar Area.
Definition DefinitionsGUI.h:10273
@ SetRange
Set range.
Definition DefinitionsGUIViewGraph.h:1244