Hi, @Ahmet Orun
Please refer to the similar thread: How to set font for single control in Dialog?
And RLWA32's answer:
OnInitDialog:
// TODO: Add extra initialization here
//
// class member CFont m_NewFont;
LOGFONT lf{};
CFont* pFont = m_button1.GetFont(); // Get initial font
pFont->GetLogFont(&lf); // Use LOGFONT to get font information
lf.lfHeight = 120; // Use to create 12 point font
m_NewFont.CreatePointFontIndirect(&lf); // Create a 12 point font
m_button1.SetFont(&m_NewFont, TRUE); // Have edit control use the 12 point font
return TRUE;
Best regards,
Minxin Yu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.