流云の剑舞秋风

吾生也有涯 而知也无涯

博客园 首页 新随笔 联系 订阅 管理
CFontDialog fdlg;
 if(fdlg.DoModal()==IDOK)
 {
  LOGFONT lf;
  CFont *ft;
  ft=new CFont;
  fdlg.GetCurrentFont(&lf);
  ft->CreateFontIndirect(&lf);
  this->m_font.SetFont(ft,TRUE);    //m_font是编辑框连接的control变量
 }
posted on 2005-05-16 13:23  流云  阅读(1015)  评论(0编辑  收藏  举报