blob: 7647eceb24977250c326616a9e9efa00b5a160e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#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);
}
|