FLImaging 6.5.8.1
GUIProgressCtrlFloatingPoint.h
1#pragma once
2#include "GUIProgressCtrl.h"
3
4namespace FLImaging
5{
6 namespace GUI
7 {
8 class CGUIStatusBarMainFrame;
9 class CGUIMainFrame;
10
11 class FL_EXPORT CGUIProgressCtrlFloatingPoint : public CGUIProgressCtrl
12 {
13 public:
14 CGUIProgressCtrlFloatingPoint();
15 CGUIProgressCtrlFloatingPoint(CGUIStatusBarMainFrame* pParent);
16 virtual ~CGUIProgressCtrlFloatingPoint();
17
18 protected:
19 double m_f64Min; // default 0.
20 double m_f64Max; // default 1.
21 double m_f64Pos; // default 0.
22 double m_f64Step; // default 0.01
23
24 public:
25 virtual void SetPos(double f64Pos);
26 virtual double GetPos()const;
27
28 // Sets range of values for the control.
29 virtual void SetRange(double f64Lower, double f64Upper);
30 // Retrieves range of values for the control.
31 virtual void GetRange(double& f64Lower, double& f64Upper) const;
32
33 // Displaces the current position within the set range of the
34 // control by the passed value.
35 virtual int OffsetPos(double f64Pos);
36
37 // Sets the step by which increments happen with a call to StepIt().
38 virtual void SetStep(double f64Step);
39
40 // REVIEW: Retrieves the step increment for the progress bar control.
41 virtual double GetStep() const;
42
43 // Steps the control by the value set with SetStep().
44 virtual double StepIt();
45
46 protected:
47 DECLARE_MESSAGE_MAP()
48 virtual void Update(CDC* pDC)override;
49
50 };
51 }
52}
53
@ SetRange
그래프 뷰의 표시 범위 지정