#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