|
-
March 15th, 2003, 12:10 PM
#1
Font for CButton
hai,
How can we change the font of caption on a button?
I tried with both using CreateFontIndirect and Logfont.
parts of code is given below:-
VERIFY(font.CreateFont(
12, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_NORMAL, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
"Ponni")); // lpszFacename
GetDlgItem(IDC_BUTTON1)->SetFont(&font);
thanks,
saj
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|