DrawText

/* dc.SetTextColor(RGB(155, 0, 0));
dc.SetBkMode(TRANSPARENT);
LOGFONT lf;
memset(&lf, 0, sizeof(lf));
lf.lfHeight = -MulDiv(24, dc.GetDeviceCaps(LOGPIXELSY), 72);
lf.lfWeight = FW_NORMAL;
lf.lfOutPrecision = OUT_TT_ONLY_PRECIS;
// create and select it
CFont newFont;
if (!newFont.CreateFontIndirect(&lf))
return;
CFont* pOldFont = dc.SelectObject(&newFont);
//dc.TextOut(100, 100, _T(“Hello,World”));
// dc.DrawText(_T(“123456”), &rc, DT_CENTER);//*/

你可能感兴趣的:(DrawText)