1.在.h中定义成员变量:
CFont m_font;
2.在.cpp中的构造函数中初始化m_font:
m_font.CreatePointFont(120,"微软雅黑");
3.在oncreate中设置字体:
this->SetFont(&m_font);