Link to home
Start Free TrialLog in
Avatar of jsakhtar
jsakhtarFlag for United States of America

asked on

Changing fonts in listbox & edit controls

I am using MFC to handle a ListBox and an Edit control in my application. When I try to change the font in these controls to "Courier New" the font does not change. Can anyone give me some insight into what may be going on?
Avatar of iarla
iarla

Caan you post the code with which you are trying to do this
Avatar of jsakhtar

ASKER

From InitDialog()

CFont font;
font.CreatePointFont(90,
   L"Courier New");
m_listbox.SetFont(&font);
all I need to do is set the font to a fixed width font
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial