|
首先需要设置字体的大小
如下
CFont *Font;
LOGFONT lf;
Font=new CFont;
Font->CreatePointFont(300,(LPCTSTR)"黑体");
Font->GetLogFont(&lf);
//lf.lfUnderline=TRUE;
Font->DeleteObject();
Font->CreateFontIndirect(&lf);
((CEdit*)GetDlgItem(IDC_EDIT))->SetFont(Font,true);
另一帖中已答 |
|