Erich Ruth
May 14th, 1999, 04:32 PM
To print text to the SDI child area, I typed;
OnDraw()
{
CFont newFont;
newFont.CreatePointFont(100, "Times New Roman");
CFont *pOldFont = pDC->SelectObject(&newFont);
pDC->TextOut(5, 5, "Text to screen");
pDC->SelectObject(pOldFont);
newFont.DeleteObject();
}
How can I adjust this code so that a word is underlined, in bold,
italics, or all of the above?
Any response any one can give me will be greatly appreciated.
OnDraw()
{
CFont newFont;
newFont.CreatePointFont(100, "Times New Roman");
CFont *pOldFont = pDC->SelectObject(&newFont);
pDC->TextOut(5, 5, "Text to screen");
pDC->SelectObject(pOldFont);
newFont.DeleteObject();
}
How can I adjust this code so that a word is underlined, in bold,
italics, or all of the above?
Any response any one can give me will be greatly appreciated.