blob: 375f535a9921afa0c0c468c40fa534fe370b8e50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#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);
};
|