16,465
社区成员
发帖
与我相关
我的任务
分享
void CSDI2View::OnDraw(CDC* pDC)
{
CSDI2Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
CRect rc(10, 10, 300, 100);
pDC->Rectangle(&rc);
int nH = rc.Height();
CFont mFont;
mFont.CreateFont(-rc.Height(),
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
_T("Arial"));
CFont *pOldFont = pDC->SelectObject(&mFont);
pDC->SetBkMode(TRANSPARENT);
pDC->DrawText(_T("ABCE"), &rc, DT_TOP|DT_BOTTOM);
}