xhzxlqt

//在OnCreate中添加

    //设置正常字体
    LOGFONT lf;  
    afxGlobalData.fontRegular.GetLogFont(&lf);  
    afxGlobalData.fontRegular.DeleteObject();  
    lf.lfHeight = -12;  
    lstrcpy(lf.lfFaceName, _T("宋体"));     // using without style office 2007  
    afxGlobalData.fontRegular.CreateFontIndirect(&lf); 
   
    //设置加粗的字体
    afxGlobalData.fontBold.GetLogFont(&lf);  
    afxGlobalData.fontBold.DeleteObject();  
    lf.lfHeight = -12;  
    lstrcpy(lf.lfFaceName, _T("宋体"));  
    afxGlobalData.fontBold.CreateFontIndirect(&lf);
   
    afxGlobalData.fontTooltip.GetLogFont(&lf);  
    afxGlobalData.fontTooltip.DeleteObject();  
    lf.lfHeight = -12;  
    lstrcpy(lf.lfFaceName, _T("宋体"));  
    afxGlobalData.fontTooltip.CreateFontIndirect(&lf);

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-09-25
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2021-12-06
  • 2021-12-19
  • 2021-12-29
  • 2021-06-19
  • 2022-01-02
  • 2021-12-13
  • 2021-09-11
相关资源
相似解决方案