#include "StdAfx.h" #include "T2VerticalTable.h" T2VerticalTable::T2VerticalTable(T2TowerDoc* towerDoc, T2ImageObj* imageObj, CPalette* palette) : T2DlgItemImageTable(towerDoc, imageObj, palette) { mClearBackground = false; } void T2VerticalTable::Clear() { RemoveRows(mRows, 1); } /*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); }