#ifndef T2DLL_T2DLGITEMSTIMETBL_H #define T2DLL_T2DLGITEMSTIMETBL_H #include "../common.h" #include "T2DlgItem.h" class AFX_CLASS_EXPORT T2DlgItemSTimeTbl : public T2DlgItem { public: T2DlgItemSTimeTbl(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2DlgItemSTimeTbl(); virtual BOOL Create(const char* windowName, DWORD style, const RECT& rect, CWnd* parentWnd, UINT nId); void SetGrade(int inGrade); protected: virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC); private: void DrawTime(CDC* pDC, unsigned int inArriveTime, BOOL isGrade, CRect& inRect); CFont *mCFont; int mGrade; }; #endif