#pragma once #include "common.h" #include "T2DlgItemImageTable.h" class AFX_EXT_CLASS 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; };