How do i make the font bold or change the font type
in a static control?
Printable View
How do i make the font bold or change the font type
in a static control?
Try this:
Code:HFONT f = CreateFont(13,0,0,0,FW_NORMAL,0,0,0,DEFAULT_CHARSET,OUT_CHARACTER_PRECIS,CLIP_CHARACTER_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH | FF_DONTCARE,"Arial or another fontname");
SendMessage(GetDlgItem(hDlg,IDC_STATIC1),WM_SETFONT,(WPARAM)f,MAKELPARAM(TRUE, 0));