Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: quick cmd prompt question Pin
Anonymous16-Oct-03 17:01
Anonymous16-Oct-03 17:01 
GeneralRe: quick cmd prompt question Pin
keegan17-Oct-03 8:01
keegan17-Oct-03 8:01 
GeneralOnShowWindow called twice Pin
MarcoNedwig16-Oct-03 9:33
MarcoNedwig16-Oct-03 9:33 
GeneralInitDialog Visual Studio .Net2003 Pin
MarcoNedwig16-Oct-03 9:30
MarcoNedwig16-Oct-03 9:30 
GeneralRe: InitDialog Visual Studio .Net2003 Pin
Mike Dimmick16-Oct-03 22:52
Mike Dimmick16-Oct-03 22:52 
GeneralRe: InitDialog Visual Studio .Net2003 Pin
MarcoNedwig17-Oct-03 5:07
MarcoNedwig17-Oct-03 5:07 
GeneralFonts and MFC Pin
Rafael Fernández López16-Oct-03 9:14
Rafael Fernández López16-Oct-03 9:14 
GeneralRe: Fonts and MFC Pin
Peter Mares16-Oct-03 21:20
Peter Mares16-Oct-03 21:20 
Try this:

<br />
CFont tahomaFont;<br />
<br />
tahomaFont.CreatePointFont(120, "Tahoma"); // 12 pt * 10<br />
YourCWndObject.SetFont(&tahomaFont);<br />


That should work. A really good idea is to store your font objects as member variables of a class so you can clean up after yourself at the destructor phase.

Hope this helps


www.kinkycode.com
[Glossary Manager] [AfterThought Backup Lite]

99 little bugs in the code, 99 little bugs,
Fix 1 bug, recompile....
101 little bugs in the code...
GeneralRe: Fonts and MFC Pin
Rafael Fernández López17-Oct-03 9:59
Rafael Fernández López17-Oct-03 9:59 
GeneralMedia Streaming / QoS Pin
Anonymous16-Oct-03 8:59
Anonymous16-Oct-03 8:59 
GeneralNetworking/Databasing Prog Pin
code_girl16-Oct-03 7:09
susscode_girl16-Oct-03 7:09 
GeneralRe: Networking/Databasing Prog Pin
Michael P Butler16-Oct-03 7:23
Michael P Butler16-Oct-03 7:23 
GeneralRe: Networking/Databasing Prog Pin
script_smiths16-Oct-03 21:54
script_smiths16-Oct-03 21:54 
Generalresizing dialog box to parent client area Pin
b_girl16-Oct-03 5:47
b_girl16-Oct-03 5:47 
GeneralRe: resizing dialog box to parent client area Pin
Terry O'Nolley16-Oct-03 13:36
Terry O'Nolley16-Oct-03 13:36 
GeneralRe: resizing dialog box to parent client area Pin
b_girl17-Oct-03 3:16
b_girl17-Oct-03 3:16 
QuestionName of the '|' key ? Pin
Brian van der Beek16-Oct-03 5:27
Brian van der Beek16-Oct-03 5:27 
AnswerRe: Name of the '|' key ? Pin
antlers16-Oct-03 5:36
antlers16-Oct-03 5:36 
AnswerRe: Name of the '|' key ? Pin
Chris Meech16-Oct-03 5:45
Chris Meech16-Oct-03 5:45 
AnswerRe: Name of the '|' key ? Pin
David Crow16-Oct-03 6:52
David Crow16-Oct-03 6:52 
GeneralRe: Name of the '|' key ? Pin
Anonymous16-Oct-03 7:51
Anonymous16-Oct-03 7:51 
AnswerRe: Name of the '|' key ? Pin
RChin17-Oct-03 6:34
RChin17-Oct-03 6:34 
GeneralVK_TAB in an edit control in a dialog Pin
Dave_16-Oct-03 5:03
Dave_16-Oct-03 5:03 
GeneralRe: VK_TAB in an edit control in a dialog Pin
igor196016-Oct-03 7:50
igor196016-Oct-03 7:50 
GeneralRe: VK_TAB in an edit control in a dialog Pin
Dave_16-Oct-03 8:02
Dave_16-Oct-03 8:02 

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.