CodePudding user response:
TextBox1 - & gt; The Font - & gt; Style=textBox1 - & gt; The Font - & gt; Style1, in the MFC dialog box placed the static text box;
2, add controls associated variables, m_static (value) is control, not under//change first ID can add normal control variable
3, declare global class objects: CFont CFont;
4, in the initial setup dialog, the following code:
Cfont. CreatePointFont (150, _T (" black "), NULL);
GetDlgItem (IDC_STATIC_TITLE) - & gt; The SetFont (& amp; Cfont);