summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DlgItemAPTable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2DlgItemAPTable.h')
-rw-r--r--src/T2DLL/T2DlgItemAPTable.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/T2DLL/T2DlgItemAPTable.h b/src/T2DLL/T2DlgItemAPTable.h
index 3f80516..9fb6223 100644
--- a/src/T2DLL/T2DlgItemAPTable.h
+++ b/src/T2DLL/T2DlgItemAPTable.h
@@ -1,17 +1,22 @@
#pragma once
#include "common.h"
+#include "T2DlgItemImageTable.h"
-class T2DlgItemAPTable {
+class AFX_EXT_CLASS T2DlgItemAPTable : public T2DlgItemImageTable {
public:
- TableCellT GetClickedCell();
- CPoint GetClickPoint();
- virtual ~T2DlgItemAPTable();
- T2DlgItemAPTable(T2TowerDoc*, T2ImageObj*, CPalette*);
- T2DlgItemAPTable(int, int, int, int, int, T2TowerDoc*, T2ImageObj*, CPalette*);
+ 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*, const TableCellT&);
- virtual void DrawCellSelf(CDC*, const TableCellT&, int);
- virtual void HiliteCell(CDC*, const TableCellT&);
- virtual void UnhiliteCell(CDC*, const TableCellT&);
- virtual void ClickCell(const TableCellT&, const POINT&);
+ 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;
};