|
利用mfc编写activex控件(10) { pdc->FillRect(rcBounds, CBrush::FromHandle((HBRUSH)GetStockObject(WHITE_BRUSH))); CBrush bkBrush(TranslateColor(GetBackColor())); pdc->FillRect(rcBounds, &bkBrush);
if (m_erase) { pdc->MoveTo(rcBounds.left, (rcBounds.top + rcBounds.bottom) / 2); pdc->LineTo(rcBounds.right, (rcBounds.top + rcBounds.bottom) / 2); } pdc->Ellipse(rcBounds); }
|