المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Find cursor



C++ Programming
11-12-2009, 03:30 AM
hi all...
iam a beginner in VC++
previously i have posted query regarding saving editbox contents and opening a text file...
it worked perfectly .. thanks for all support.. i have experienced a very fast response from this forum..

I have 4 editboxes.. i have added Cfontdialog to my application..
once i click ok it changes the font of the first editbox alone.. how can i change the font of other 3 editboxes indivitually... for that as per my understaning, i should find, in which editbox the cursor is... how can i achieve that...below code is for one edit box..

LOGFONT lf;
CFont *font = new CFont();
CFontDialog FontDlg(&lf);

if(FontDlg.DoModal() == IDOK)
{
font->CreateFontIndirect(&lf);
m_edit1.SetFont(font);
}
plz help me.. thanks in advance