summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DlgItemGageBase.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2DlgItemGageBase.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/T2DLL/T2DlgItemGageBase.h b/src/T2DLL/T2DlgItemGageBase.h
index f1e18d8..d2471a1 100644
--- a/src/T2DLL/T2DlgItemGageBase.h
+++ b/src/T2DLL/T2DlgItemGageBase.h
@@ -1,16 +1,21 @@
#pragma once
#include "common.h"
+#include "T2DlgItem.h"
-class T2DlgItemGageBase {
+class AFX_EXT_CLASS T2DlgItemGageBase : public T2DlgItem {
public:
- T2DlgItemGageBase(T2TowerDoc*, T2ImageObj*, CPalette*);
+ T2DlgItemGageBase(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
protected:
- virtual int OnT2DlgItemEraseBkgnd(CDC*);
- virtual void DrawInterior(CDC*, const CRect&);
+ virtual BOOL OnT2DlgItemEraseBkgnd(CDC*);
+ virtual int GetMinValue() = 0; // 118
+ virtual int GetMaxValue() = 0; // 11C
+ virtual int GetBlueValue() = 0; // 120
+ virtual int GetYellowValue() = 0; // 124
+ virtual COLORREF GetGageColor(int value) = 0; // 128
+ virtual BOOL IsDrawInterior() = 0; // 12C
+ virtual void DrawInterior(CDC*, const CRect&); // 130
+
void DrawBorderLines(CDC*, const CRect&);
void DrawValueByText(CDC*, const CRect&);
int CalcPos(const CRect&, int, int, int);
-
-public:
- virtual ~T2DlgItemGageBase() {}
};