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