End Google Ads 201810 - BS.net 01 --> 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