1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#pragma once
#include "common.h"
#include "T2VerticalTable.h"
class AFX_CLASS_EXPORT 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_CLASS_EXPORT T2HallEventItem {
public:
T2HallEventItem(T2HallEventPlugin *inPlugin, const char *inStr) {
mPlugin = inPlugin;
if (inStr)
strcpy(mStr, inStr);
else
mStr[0] = 0;
}
virtual ~T2HallEventItem() {}
T2HallEventPlugin *mPlugin;
char mStr[64];
};
class AFX_CLASS_EXPORT 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];
};
|