void CTrail3Dlg::OnBnClickedButton1() { UpdateData(TRUE); CFontDialog dlg; // get font for current dialog, just to fill in LOGFONT LOGFONT lf; CFont *pFont = GetFont(); pFont->GetLogFont(&lf); if (dlg.DoModal()== IDOK) { dlg.GetCurrentFont(&lf); m_font.DeleteObject(); m_font.CreateFontIndirect(&lf); GetDlgItem(IDC_EDIT1)->SetFont(&m_font); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)