summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2NameTable.h
blob: 6a64a123748f104aaa61902a7d8f8fb33e03d335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#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);
};