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

class AFX_CLASS_EXPORT T2DlgItemAPTable : public T2DlgItemImageTable {
public:
	T2DlgItemAPTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
	T2DlgItemAPTable(int inRows, int inCols, int inRowHeight, int inColWidth, int inCellDataSize, T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);

	TableCellT GetClickedCell() { return mClickedCell; }
	CPoint GetClickPoint() { return mClickPoint; }

protected:
	virtual void DrawCell(CDC* pDC, const TableCellT& inCell);
	virtual void DrawCellSelf(CDC* pDC, const TableCellT& inCell, BOOL selected);
	virtual void HiliteCell(CDC* pDC, const TableCellT& inCell);
	virtual void UnhiliteCell(CDC* pDC, const TableCellT& inCell);
	virtual void ClickCell(const TableCellT& inCell, const POINT& inPt);

	CPoint mClickPoint;
	TableCellT mClickedCell;
};
#endif