#pragma once #include "common.h" #include "T2VerticalTable.h" class AFX_EXT_CLASS T2HallEventTable : public T2VerticalTable { public: T2HallEventTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2HallEventTable(); virtual void Add(T2HallEventPlugin* inPlugin); virtual void Add(CFilePluginList* inList); virtual void Add(const char* inStr); virtual void SetCellData(const TableCellT& inCell, T2HallEventPlugin* inPlugin, const char* inStr); void SetUserCon(int inUserCon) { mUserCon = inUserCon; } protected: virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC); virtual void OnT2DlgItemLButtonDown(UINT inFlags, CPoint inPt); virtual int OnT2DlgItemCreate(CREATESTRUCT* cs); virtual void DrawCell(CDC* pDC, const TableCellT& inCell); virtual void DrawCellSelf(CDC* pDC, const TableCellT& inCell, BOOL inSelected); virtual void ClickCell(const TableCellT& inCell, const CPoint& inPt); int GetUserCon() { return mUserCon; } int mUserCon; }; class AFX_EXT_CLASS T2MonthlyTable : public T2VerticalTable { public: T2MonthlyTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2MonthlyTable(); void SetStartMonth(T2TowerDoc* inDoc, int inMonth); protected: virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC); virtual void OnT2DlgItemLButtonDown(UINT inFlags, CPoint inPt); virtual int OnT2DlgItemCreate(CREATESTRUCT* cs); virtual void DrawCell(CDC* pDC, const TableCellT& inCell); virtual void DrawCellSelf(CDC* pDC, const TableCellT& inCell, BOOL inSelected); void ClickCell(const TableCellT& inCell, const CPoint& inPt); int mStartMonth; BOOL mIsHoliday[12]; };