Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: problem extending datetimepicker Pin
CPallini27-Sep-09 22:00
mveCPallini27-Sep-09 22:00 
QuestionTons of Variable Declarations Pin
Herboren27-Sep-09 20:38
Herboren27-Sep-09 20:38 
AnswerRe: Tons of Variable Declarations Pin
«_Superman_»27-Sep-09 20:58
professional«_Superman_»27-Sep-09 20:58 
GeneralRe: Tons of Variable Declarations Pin
Herboren27-Sep-09 21:01
Herboren27-Sep-09 21:01 
AnswerRe: Tons of Variable Declarations Pin
CPallini27-Sep-09 20:59
mveCPallini27-Sep-09 20:59 
GeneralRe: Tons of Variable Declarations Pin
Herboren27-Sep-09 21:02
Herboren27-Sep-09 21:02 
QuestionRe: Tons of Variable Declarations Pin
CPallini27-Sep-09 21:14
mveCPallini27-Sep-09 21:14 
QuestionUsing font in CPaintDC VC6 [solved] Pin
Eka Candra27-Sep-09 20:33
Eka Candra27-Sep-09 20:33 
I made this codes on OnPaint() function:

CPaintDC dc(pdlg);                  // device context for painting
CFont font;
font.CreateFont(
   24,                        // nHeight
   0,                         // nWidth
   0,                         // nEscapement
   0,                         // nOrientation
   FW_HEAVY,                 // nWeight
   true,                     // bItalic
   true,                     // bUnderline
   0,                         // cStrikeOut
   DEFAULT_CHARSET,              // nCharSet
   OUT_DEVICE_PRECIS,        // nOutPrecision
   CLIP_DEFAULT_PRECIS,       // nClipPrecision
   PROOF_QUALITY ,           // nQuality
   FF_SCRIPT ,  // nPitchAndFamily
   "Times New Roman");                 // lpszFacename
dc.TextOut(15, 100, "welcome", 7);
dc.SelectObject(&font);
font.DeleteObject();


Text is appear on dialog form, but it is still on regular style and using arial font type.
Whereas, I have set that font to Italic-underline style. I also changed font facename to Times New Roman and Verdana, but there is no differences when it show on dialog form.

What's wrong with my codes? Is there any missing code?

Help me please...


Thanks and Regards,

modified on Monday, September 28, 2009 2:56 AM

AnswerRe: Using font in CPaintDC VC6 Pin
«_Superman_»27-Sep-09 20:36
professional«_Superman_»27-Sep-09 20:36 
NewsRe: Using font in CPaintDC VC6 Pin
Eka Candra27-Sep-09 20:54
Eka Candra27-Sep-09 20:54 
GeneralRe: Using font in CPaintDC VC6 Pin
Iain Clarke, Warrior Programmer28-Sep-09 19:58
Iain Clarke, Warrior Programmer28-Sep-09 19:58 
Questionchange color and font push button VC6 Pin
Eka Candra27-Sep-09 20:23
Eka Candra27-Sep-09 20:23 
AnswerRe: change color and font push button VC6 Pin
«_Superman_»27-Sep-09 20:34
professional«_Superman_»27-Sep-09 20:34 
GeneralRe: change color and font push button VC6 Pin
Eka Candra27-Sep-09 20:48
Eka Candra27-Sep-09 20:48 
GeneralRe: change color and font push button VC6 Pin
«_Superman_»27-Sep-09 20:55
professional«_Superman_»27-Sep-09 20:55 
GeneralRe: change color and font push button VC6 Pin
Eka Candra27-Sep-09 21:14
Eka Candra27-Sep-09 21:14 
GeneralRe: change color and font push button VC6 Pin
«_Superman_»28-Sep-09 5:49
professional«_Superman_»28-Sep-09 5:49 
QuestionRe: change color and font push button VC6 Pin
David Crow28-Sep-09 3:34
David Crow28-Sep-09 3:34 
GeneralRe: change color and font push button VC6 Pin
kilt30-Sep-09 4:52
kilt30-Sep-09 4:52 
QuestionHow to create a dialog that acts like MDIChild window Pin
NAngelUK27-Sep-09 12:02
NAngelUK27-Sep-09 12:02 
AnswerRe: How to create a dialog that acts like MDIChild window Pin
«_Superman_»27-Sep-09 16:20
professional«_Superman_»27-Sep-09 16:20 
GeneralRe: How to create a dialog that acts like MDIChild window Pin
neil.kuo27-Sep-09 17:33
neil.kuo27-Sep-09 17:33 
GeneralDirectX 10 Pin
MrMcIntyre27-Sep-09 10:57
MrMcIntyre27-Sep-09 10:57 
GeneralRe: DirectX 10 Pin
Richard MacCutchan27-Sep-09 12:19
mveRichard MacCutchan27-Sep-09 12:19 
GeneralRe: DirectX 10 Pin
CPallini27-Sep-09 23:42
mveCPallini27-Sep-09 23:42 

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.