hi,
Yes We can Change the Font , I have shown here to change the Font of label.
Hope this may be helpful for you
Code:
HFONT g_hLabelFont;
g_hLabelFont = CreateLabelFontBold();
::SendDlgItemMessage(hDlg,IDC_STATIC1, WM_SETFONT,(int) g_hLabelFont, 0);
Code:
HFONT CreateLabelFontBold()
{
LOGFONT lf;
memset(&lf, 0, sizeof(LOGFONT));
HDC hdc = ::GetDC(NULL);
lf.lfHeight = -9 * GetDeviceCaps(hdc, LOGPIXELSY) / 72;
::ReleaseDC(NULL, hdc);
lf.lfWidth =0;
lf.lfWeight = FW_SEMIBOLD;
return CreateFontIndirect(&lf);
}
-joy