I need to insert 2 different kinds of fonts onto the text in a single edit box..
But as a beginner i could able to set only one kind of font to the text in the edit box i have attached my code below please help me modify..!!
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);
}
}