要在静态控件上显示与系统默认字体不同的字体,首先需要创建控件变量
public:
CStatic m_userNickname;
然后,在对话框初始化时添加代码:
CFont font;
font.CreatePointFont( 300, L"微软雅黑", NULL );
this->m_userNickname.SetFont( &font );
this->m_userNickname.SetWindowTextW( this->m_usrID );
要在静态控件上显示与系统默认字体不同的字体,首先需要创建控件变量
public:
CStatic m_userNickname;
CFont font;
font.CreatePointFont( 300, L"微软雅黑", NULL );
this->m_userNickname.SetFont( &font );
this->m_userNickname.SetWindowTextW( this->m_usrID );