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);
172 void SetMinValue(T tValue,
bool bRedraw,
bool bSendMessage =
true);
173 void SetMaxValue(T tValue,
bool bRedraw,
bool bSendMessage =
true);
186 void IncreaseMinValue(T tValue,
bool bRedraw);
187 void IncreaseMaxValue(T tValue,
bool bRedraw);
200 void DecreaseMinValue(T tValue,
bool bRedraw);
201 void DecreaseMaxValue(T tValue,
bool bRedraw);
214 void IncreaseMinPos(int32_t i32PosDelta,
bool bRedraw);
215 void IncreaseMaxPos(int32_t i32PosDelta,
bool bRedraw);
228 void DecreaseMinPos(int32_t i32PosDelta,
bool bRedraw);
229 void DecreaseMaxPos(int32_t i32PosDelta,
bool bRedraw);
242 void IncreaseMinTick(int32_t i32Tick,
bool bRedraw);
243 void IncreaseMaxTick(int32_t i32Tick,
bool bRedraw);
256 void DecreaseMinTick(int32_t i32Tick,
bool bRedraw);
257 void DecreaseMaxTick(int32_t i32Tick,
bool bRedraw);
268 T GetMinValue()
const;
269 T GetMaxValue()
const;
282 int32_t GetPosByValue(T tValue)
const;
295 T GetValueByPos(int32_t i32Pos)
const;
304 virtual void UpdateSliderMin();
305 virtual void UpdateSliderMax();
318 T GetRemainder(T tValue)
const;
331 virtual const CResult SetHandleSlideTogether(
bool bSet =
true);
343 virtual bool IsHandleSlidingTogether()
const;
356 virtual void OnMouseWheel(
const CPoint& ptPoint,
bool bUpWheel);
367 virtual void OnLButtonDown(
const CPoint& ptPoint)
override;
368 virtual void OnLButtonUp(
const CPoint& ptPoint)
override;
369 virtual void OnMouseMove(
const CPoint& ptPoint)
override;
371 virtual ESliderArea HitTest(
const CPoint& ptPoint)
const override;
374 virtual void SetMinPos(int32_t i32Pos,
bool bSetValue,
bool bSendMsg,
bool bRedraw);
375 virtual void SetMaxPos(int32_t i32Pos,
bool bSetValue,
bool bSendMsg,
bool bRedraw);
378 bool m_bHandleSlidingTogether;
383 int32_t m_i32PosMinOnLBtnDown;
384 int32_t m_i32PosMaxOnLBtnDown;
388 mutable T m_tValueMin;
389 mutable T m_tValueMax;
ESliderArea
슬라이더 영역
Definition GUIDefinitions.h:9851
@ SetRange
그래프 뷰의 표시 범위 지정