I'm trying to change the fontsize of a dialog control edit box, but it just bold the font of edit box and does not change the size of font and font style but the same code works with the static control why? The Code are that:-
CWnd* pWnd = GetDlgItem(IDC_EDIT1);
CFont font;
font.CreateFont(20,10,0,1,700,0,0,0,0,0,0,0,0,"Arial");
pWnd->SetFont(&font);
The same code with static control works
CWnd* pWnd = GetDlgItem(IDC_STATIC);
CFont font;
font.CreateFont(20,10,0,1,700,0,0,0,0,0,0,0,0,"Arial");
pWnd->SetFont(&font);
Please Any one can help me...:rose: