blob: b4bf216811c07e5bdc153eda4b8e6b786c4ee641 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef T2DLL_T2DLGITEMGAGEBASE_H
#define T2DLL_T2DLGITEMGAGEBASE_H
#include "../common.h"
#include "T2DlgItem.h"
class AFX_CLASS_EXPORT T2DlgItemGageBase : public T2DlgItem {
public:
T2DlgItemGageBase(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
protected:
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);
};
#endif
|