|
void CEx03aView::OnDraw(CDC* pDC)
{
CEx03aDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
if (!pDoc)
return;
m_str.LoadString(IDS_HELLO);
To
pDC->TextOut(0,0,m_str);//If pDC->TextOut(0,0,"HELLO"); is used directly here, an error will be reported!
pDC->SelectStockObject(GRAY_BRUSH);
pDC->Ellipse(CRect(0,20,100,120));
// TODO: Add drawing code for this machine data here
}
It is relatively simple in vc6! |
|