Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStatic text (in)visible Pin
Marc Howe10-Dec-99 5:18
Marc Howe10-Dec-99 5:18 
GeneralRE: Static text (in)visible Pin
Peter Zajac10-Dec-99 6:00
Peter Zajac10-Dec-99 6:00 
GeneralRE: Static text (in)visible Pin
Anonymous12-Dec-99 21:43
suss Anonymous12-Dec-99 21:43 
General"Code keeper" type program in VC++ Pin
Marc Howe10-Dec-99 5:16
Marc Howe10-Dec-99 5:16 
GeneralDLLs? Pin
Member 40415-Dec-99 7:52
Member 40415-Dec-99 7:52 
GeneralChange CEdit font Pin
Jeremy Davis10-Dec-99 3:42
Jeremy Davis10-Dec-99 3:42 
GeneralRE: Change CEdit font Pin
Alex Gorev10-Dec-99 4:37
Alex Gorev10-Dec-99 4:37 
GeneralRE: RE: Change CEdit font Pin
Jeremy Davis12-Dec-99 22:13
Jeremy Davis12-Dec-99 22:13 
Thanks! I'll try it and let you know.

==================
The original message was:

Hi Jeremy!

I think your have problems because you are creating font in the local variable and as soon as it go out of scope the font is destroyed.

The lifetime of the CFont object should be the same as your edit control. The best thing to do this is to add a CFont variable to your dialog class.

Regards,
Alex Gorev,
Dundas Software.

==================
The original message was:

This must be easy BUT.....

I've tried to change the font on a single CEdit box in a dialog. I've used the following code....

CFont m_Font;
m_Font.CreateFont(.........);
GetDlgItem(CEDIT_ID)->SetFont(&m_Font);

Now this "sort of" works. The font is changed BUT the line size of the CEdit is not changed accordingly so the lines below overlap lines above.

Can someone please sell me how this can be done??

Thanks in advance

Jeremy Davis
GeneralRE: RE: Change CEdit font Pin
Jeremy Davis13-Dec-99 1:19
Jeremy Davis13-Dec-99 1:19 
GeneralExternal program execution Pin
Mark9-Dec-99 3:47
Mark9-Dec-99 3:47 
GeneralRE: External program execution Pin
Peter Zajac9-Dec-99 4:14
Peter Zajac9-Dec-99 4:14 
GeneralRE: RE: External program execution Pin
Mark12-Dec-99 4:38
Mark12-Dec-99 4:38 
GeneralRE: External program execution Pin
David Leikis9-Dec-99 5:53
suss David Leikis9-Dec-99 5:53 
GeneralRE: External program execution Pin
David Leikis9-Dec-99 5:54
David Leikis9-Dec-99 5:54 
GeneralRE: External program execution Pin
Lanz Jean-Claude18-Dec-99 3:03
Lanz Jean-Claude18-Dec-99 3:03 
QuestionHow to change a combobox style after the combobox is created Pin
Bernhard9-Dec-99 3:16
suss Bernhard9-Dec-99 3:16 
AnswerRE: How to change a combobox style after the combobox is created Pin
Alex Gorev9-Dec-99 9:46
Alex Gorev9-Dec-99 9:46 
GeneralRE: How to change a combobox style after the combobox is created Pin
Member 105410-Dec-99 6:43
Member 105410-Dec-99 6:43 
GeneralRE: RE: How to change a combobox style after the combobox is created Pin
Alex Gorev13-Dec-99 4:17
Alex Gorev13-Dec-99 4:17 
GeneralRE: RE: RE: How to change a combobox style after the combobox is created Pin
Carole Zieler13-Dec-99 8:10
suss Carole Zieler13-Dec-99 8:10 
GeneralMultiply Views and document Pin
Member 47779-Dec-99 1:57
Member 47779-Dec-99 1:57 
QuestionHow to stop resizng a window ,when it size excede the certain length Pin
doe8-Dec-99 15:39
doe8-Dec-99 15:39 
AnswerRE: How to stop resizng a window ,when it size excede the certain length Pin
Member 10549-Dec-99 1:36
Member 10549-Dec-99 1:36 
AnswerRE: How to stop resizng a window ,when it size excede the certain length Pin
Mike Dunn9-Dec-99 11:15
Mike Dunn9-Dec-99 11:15 
QuestionHow do I extract drive name from file path? Pin
Dean Edmonds8-Dec-99 12:50
sussDean Edmonds8-Dec-99 12:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.