如何读取用户选择的字体,是在mfc中,附代码

CFontDialog dlg;
if(dlg.DoModal() == IDOK)
下面怎么设置CEdit1

  GetDlgItem(IDC_EDIT_SEND)->GetFont()->GetLogFont(&lf);
 CFontDialog dlg(&lf);        //初始化字体对话框中的字体信息
 if(IDOK==dlg.DoModal())
 {
  if(m_wordstyle.m_hObject)
   m_wordstyle.DeleteObject();
  LOGFONT logfont;
  dlg.GetCurrentFont(&logfont);  //获取选择的字体信息
  m_wordstyle.CreateFontIndirect(&logfont);   //m_wordstyle为类成员,CFont类型
  GetDlgItem(IDC_EDIT_SEND)->SetFont(&m_wordstyle);
  Invalidate();

用SetFont API来设置CEdit1的字体

http://blog.sina.com.cn/s/blog_9456dd7c01012jgp.html