Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCustomize CFileDialog Pin
3-Jun-01 19:56
suss3-Jun-01 19:56 
GeneralRe: Customize CFileDialog Pin
Marko Frelih3-Jun-01 21:10
Marko Frelih3-Jun-01 21:10 
GeneralRe: Customize CFileDialog Pin
3-Jun-01 21:47
suss3-Jun-01 21:47 
QuestionChristian Graus ... where are you? Pin
Michael Martin3-Jun-01 17:08
professionalMichael Martin3-Jun-01 17:08 
AnswerRe: Christian Graus ... where are you? Pin
PJ Arends3-Jun-01 17:39
professionalPJ Arends3-Jun-01 17:39 
GeneralRe: Christian Graus ... where are you? Pin
Michael Martin3-Jun-01 18:33
professionalMichael Martin3-Jun-01 18:33 
GeneralRe: Christian Graus ... where are you? Pin
3-Jun-01 18:55
suss3-Jun-01 18:55 
GeneralRe: Christian Graus ... where are you? Pin
PJ Arends3-Jun-01 21:26
professionalPJ Arends3-Jun-01 21:26 
CreatePointFont() is easy, but you do not have much control.Big Grin | :-D
Here is how I would create the font.
LOGFONT LF;
::ZeroMemory (&LF, sizeof(LOGFONT));
// set the font height. m_nPointSize is the height you want (ie 8). by using this formula,
// the font will be approx the same physical height on any device (ie printers and screen)
LF.lfHeight = -MulDiv (m_nPointSize, m_cEditBox.GetDC()->GetDeviceCaps(LOGPIXELSY), 72);

// specify the font face name
_tcscpy (LF.lfFaceName, "Courier New");

// specify the font weight 
LF.lfWeight = FW_NORMAL;

// create the font. the CFont object should be a member
// of your class so it does not go out of scope
m_Font.CreateFontIndirect (&LF);
m_cEditBox.SetFont (&m_Font);
be sure to explore the LOGFONT structure, with it you can do some pretty cool things with fonts.
Big Grin | :-D

---
Multitasking: Screwing up several things at once.
GeneralRe: Christian Graus ... where are you? Pin
4-Jun-01 5:01
suss4-Jun-01 5:01 
GeneralRe: Christian Graus ... where are you? Pin
4-Jun-01 5:03
suss4-Jun-01 5:03 
QuestionSend Message? Pin
Kyle3-Jun-01 16:07
Kyle3-Jun-01 16:07 
AnswerRe: Send Message? Pin
Tomasz Sowinski4-Jun-01 1:22
Tomasz Sowinski4-Jun-01 1:22 
Generalcontrolling an ungracefull program kill Pin
3-Jun-01 16:01
suss3-Jun-01 16:01 
GeneralRe: How about Timer or Thread? Pin
Masaaki Onishi3-Jun-01 17:08
Masaaki Onishi3-Jun-01 17:08 
GeneralRe: How about Timer or Thread? Pin
3-Jun-01 17:30
suss3-Jun-01 17:30 
GeneralRe: How about Timer or Thread? Pin
3-Jun-01 18:16
suss3-Jun-01 18:16 
GeneralRe: controlling an ungracefull program kill Pin
Ben Burnett3-Jun-01 20:31
Ben Burnett3-Jun-01 20:31 
Generalgetline() Pin
3-Jun-01 14:53
suss3-Jun-01 14:53 
GeneralRe: getline() Pin
Christian Graus3-Jun-01 15:31
protectorChristian Graus3-Jun-01 15:31 
GeneralInternet connection.... Pin
Rickard Andersson203-Jun-01 10:29
Rickard Andersson203-Jun-01 10:29 
GeneralRe: Internet connection.... Pin
Pavlos Touboulidis3-Jun-01 16:59
Pavlos Touboulidis3-Jun-01 16:59 
QuestionHow to disable a menu during runtime Pin
3-Jun-01 9:01
suss3-Jun-01 9:01 
AnswerRe: How to disable a menu during runtime Pin
Igor Sukhov3-Jun-01 9:13
Igor Sukhov3-Jun-01 9:13 
GeneralRe: How to disable a menu during runtime Pin
6-Jun-01 8:26
suss6-Jun-01 8:26 
QuestionHow move a component ? Pin
3-Jun-01 3:26
suss3-Jun-01 3:26 

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.