1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#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;
};
|