summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2NameTable.h
blob: 31d53bd37ff1d13f044e1d418ca0c83b79d26fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef T2DLL_T2NAMETABLE_H
#define T2DLL_T2NAMETABLE_H
#include "../common.h"
#include "T2VerticalTable.h"

class AFX_CLASS_EXPORT T2NameTable : public T2VerticalTable {
public:
	T2NameTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
    virtual ~T2NameTable() {}
	virtual void ClickSelf(POINT inPt);
	virtual void Add(T2NameList* inNameList);
	virtual void Add(T2Name* inName);
	virtual void RemoveCurrentCell();
    T2Name* GetSelectedName();

protected:
    virtual BOOL OnT2DlgItemCreate(CREATESTRUCT* inCreateStruct);
    virtual void OnT2DlgItemLButtonDown(UINT inFlags, CPoint inPt);
	virtual void DrawCell(CDC* pDC, const TableCellT& inCell);
	virtual void DrawCellSelf(CDC* pDC, const TableCellT& inCell, BOOL inSelected);
	virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC);
};
#endif