在对话框的初始化函数中添加下段代码
static CFont Sfont; static CFont Bfont; //CFont font;//不加static 貌似改变不了字体大小 Sfont.CreatePointFont(200,"隶书"); Bfont.CreatePointFont(150,"宋体"); GetDlgItem(IDC_STATIC)->SetFont(&Sfont); GetDlgItem(IDC_BUTTON1)->SetFont(&Bfont);
时间: 2024-10-30 01:34:12