diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
commit | c0c336500955a23e344651e5412c9d9d441ef4ee (patch) | |
tree | 790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2DlgItemAPTable.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2DlgItemAPTable.h | 27 |
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; }; |