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