summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DlgItemImageTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2DlgItemImageTable.cpp')
-rw-r--r--src/T2DLL/T2DlgItemImageTable.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/T2DLL/T2DlgItemImageTable.cpp b/src/T2DLL/T2DlgItemImageTable.cpp
index a54eb46..e4b8b21 100644
--- a/src/T2DLL/T2DlgItemImageTable.cpp
+++ b/src/T2DLL/T2DlgItemImageTable.cpp
@@ -1,12 +1,20 @@
#include "T2DlgItemImageTable.h"
-T2DlgItemImageTable::T2DlgItemImageTable(T2TowerDoc*, T2ImageObj*, CPalette*) {
+T2DlgItemImageTable::T2DlgItemImageTable(T2TowerDoc* towerDoc, T2ImageObj* imageObj, CPalette* palette)
+ : T2DlgItemTable(towerDoc, imageObj, palette)
+{
}
-T2DlgItemImageTable::T2DlgItemImageTable(int, int, int, int, int, T2TowerDoc*, T2ImageObj*, CPalette*) {
+T2DlgItemImageTable::T2DlgItemImageTable(int rows, int cols, int rowHeight, int colWidth, int cellDataSize, T2TowerDoc* towerDoc, T2ImageObj* imageObj, CPalette* palette)
+ : T2DlgItemTable(rows, cols, rowHeight, colWidth, cellDataSize, towerDoc, imageObj, palette)
+{
}
-/*virtual*/ void T2DlgItemImageTable::DrawCell(CDC*, const TableCellT&) {
+/*virtual*/ void T2DlgItemImageTable::DrawCell(CDC* dc, const TableCellT& cell) {
+ if (EqualCell(cell, mSelectedCell))
+ DrawCellSelf(dc, cell, true);
+ else
+ DrawCellSelf(dc, cell, false);
}
/*virtual*/ void T2DlgItemImageTable::HiliteCell(CDC*, const TableCellT&) {