1、可以通过手动设置,右键对话框,选择属性,如下图:
然后点击字体可以进行设置。
2、可以通过添加代码进行改变,示例代码如下:
BOOL __stdcall SetChildFont(HWND hwnd, LPARAM lparam)
{
CFont *pFont = (CFont*)lparam;
CWnd *pWnd = CWnd::FromHandle(hwnd);
pWnd->SetFont(pFont);
return TRUE;
}
BOOL CXXXDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CFont * f;
f = new CFont;
const LOGFONT* pFont = new LOGFONT(logFont);
f->CreateFontIndirectW(pFont); // TODO: Add extra initialization here
::EnumChildWindows(m_hWnd, ::SetChildFont, (LPARAM)f);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
VC++6.0没有自带的吗?
追答没有自带的,至少我不知道啊!