给你的对话框增加一个WM_CTLCOLOR的handler
HBRUSH OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor )
{
if( pWnd->m_hWnd == GetDlgItem(IDC_EDIT1)->m_hWnd)
{
// 把你的字体选到pDC中就可以了
// pDC->SelectObject( yourfont );
}
}
你点击改变字体的按钮之后,调用下面两句:
GetDlgItem(IDC_EDIT1)->Invalidate();   
GetDlgItem(IDC_EDIT1)->UpdateWindow();
可以参看:
HOWTO: Change the Background Color of an MFC Edit Control Q117778support.microsoft.com/support/kb/articles/q132/0/80.asp