利用CreatePointFont设置好字体后,怎样再给字体添加下划线??

利用CreatePointFont设置好字体后,怎样再给字体添加下划线??

CFont font; VERIFY(font.CreateFont( 36, // nHeight

0, // nWidth

0, // nEscapement

0, // nOrientation

FW_NORMAL, // nWeight

FALSE, // bItalic

TRUE, // bUnderline下划线标记,需要下划线把这里设置成TRUE

0, // cStrikeOut

ANSI_CHARSET, // nCharSet

OUT_DEFAULT_PRECIS, // nOutPrecision

CLIP_DEFAULT_PRECIS, // nClipPrecision

DEFAULT_QUALITY, // nQuality

DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily

_T("Arial"))); // lpszFacename // Do something with the font just created...

CClientDC dc(this);

CFont* def_font = dc.SelectObject(&font);

dc.TextOut(5, 5, _T("Hello,World!"), 5);

dc.SelectObject(def_font); // Done with the font. Delete the font object.

font.DeleteObject();