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