vc 怎么设置编辑框的字体大小

2025-04-15 16:13:59
推荐回答(1个)
回答1:

CFont font;
LOGFONT lf;
memset(&lf,0,sizeof(LOGFONT));
lf.lfHeight=-14; //字体大小
font.CreateFontIndirect(&lf);
GetDlgItem(IDC_EDIT1)->SetFont (&font);

这是我前一天,帮别人答的
http://zhidao.baidu.com/question/462445362.html?oldq=1