Alignment & Font Size
Posted on 2000-02-16
As you'll gues I'm new to MFC.
Anyway I am trying to change alignment of edit boxes in code, and would also like to know how to change edit box font size.
For the alignment I thought the following would do it (but no luck) :-
CWnd *ptr = GetDlgItem(IDC_TIME);
CDC *dc = ptr->GetDC();
where IDC_TIME is an edit box.
Also I've tried several ways to change the font size of certain edit boxes but all that seems to happen is that the edit box reverts to a default font (MS Sans Serif point 10 I think).
I would greatly appreciate any help/code examples.
P.S. The reason I'm trying to change the alignment in code is that if I use the properties option to set edit box aligment all works fine in NT4, but in Win95 all my edit boxes revert to Left Justification.