summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2VerticalTable.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2VerticalTable.cpp
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2VerticalTable.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/T2DLL/T2VerticalTable.cpp b/src/T2DLL/T2VerticalTable.cpp
index dcd2a6e..bf42d6b 100644
--- a/src/T2DLL/T2VerticalTable.cpp
+++ b/src/T2DLL/T2VerticalTable.cpp
@@ -1,10 +1,23 @@
#include "T2VerticalTable.h"
-T2VerticalTable::T2VerticalTable(T2TowerDoc*, T2ImageObj*, CPalette*) {
+T2VerticalTable::T2VerticalTable(T2TowerDoc* towerDoc, T2ImageObj* imageObj, CPalette* palette)
+ : T2DlgItemImageTable(towerDoc, imageObj, palette)
+{
+ mClearBackground = false;
}
void T2VerticalTable::Clear() {
+ RemoveRows(mRows, 1);
}
-/*virtual*/ int T2VerticalTable::OnT2DlgItemEraseBkgnd(CDC*) {
+/*virtual*/ BOOL T2VerticalTable::OnT2DlgItemEraseBkgnd(CDC* dc) {
+ if (mClearBackground) {
+ RECT rect;
+ GetClientRect(&rect);
+ int theSavedDC = dc->SaveDC();
+ dc->FillSolidRect(&rect, PALETTERGB(255, 255, 255));
+ dc->RestoreDC(theSavedDC);
+ }
+
+ return T2DlgItemTable::OnT2DlgItemEraseBkgnd(dc);
}