#pragma once #include "common.h" #include "T2DlgItemGageBase.h" class AFX_EXT_CLASS T2DlgItemProfitsGage : public T2DlgItemGageBase { public: T2DlgItemProfitsGage(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); void SetTenant(T2Tenant* inTenant); protected: virtual int GetMinValue(); virtual int GetMaxValue(); virtual int GetValue(); virtual int GetBlueValue(); virtual int GetYellowValue(); virtual COLORREF GetGageColor(int inValue); virtual void DrawInterior(CDC* pDC, const CRect& inRect); virtual BOOL IsDrawInterior(); void CalcCost(); int mCost; T2Tenant *mTenant; };