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

C / C++ / MFC

 
AnswerRe: how to Split a String ? Pin
CPallini28-Sep-09 3:02
mveCPallini28-Sep-09 3:02 
QuestionHow to use Windows FindFirstFile function and its related ones Pin
Danzy8328-Sep-09 0:59
Danzy8328-Sep-09 0:59 
QuestionRe: How to use Windows FindFirstFile function and its related ones Pin
CPallini28-Sep-09 1:59
mveCPallini28-Sep-09 1:59 
QuestionHow can create cab file for pocket pc? Pin
Le@rner28-Sep-09 0:29
Le@rner28-Sep-09 0:29 
AnswerRe: How can create cab file for pocket pc? Pin
«_Superman_»28-Sep-09 6:01
professional«_Superman_»28-Sep-09 6:01 
Questionbasic c++ question Pin
tasumisra28-Sep-09 0:05
tasumisra28-Sep-09 0:05 
AnswerRe: basic c++ question Pin
CPallini28-Sep-09 0:45
mveCPallini28-Sep-09 0:45 
AnswerRe: basic c++ question Pin
Cedric Moonen28-Sep-09 0:56
Cedric Moonen28-Sep-09 0:56 
GeneralRe: basic c++ question Pin
tasumisra28-Sep-09 1:08
tasumisra28-Sep-09 1:08 
Questionproblem extending datetimepicker -> moved discussion in managed c++ forum Pin
carlo.andreoli27-Sep-09 21:53
carlo.andreoli27-Sep-09 21:53 
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 

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.