我现在使用VS2010制作MFC,使用的控件是静态文本框跟输入文本框,现在想要改变字体颜色和背景颜色
使用 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);HBRUSH Ctest001Dlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
CBrush   test_bkBrush1;         //准备一把背景刷子 
test_bkBrush1.CreateSolidBrush(RGB(255,0,0));           //创建一把红色的背景刷子
// TODO: Change any attributes of the DC here
    // 判断下是不是你要改的控件ID 
    if( pWnd->GetDlgCtrlID() == IDC_STATIC_1 ) //IDC_STATIC_1为静态文本框ID
    {
        return test_bkBrush1;
    }
 if( pWnd->GetDlgCtrlID() == IDC_EDIT_1 ) //IDC_EDIT_1为输入文本框ID
    {
        pDC->SetTextColor(RGB(255,0,0)); //字体颜色
        pDC->SetBkColor(RGB(0, 0, 255)); //字体背景色
    }
   // TODO: Return a different brush if the default is not desired
return hbr;
}加入断点调试,发现这段程序没有运行,请教一下应该怎么修改?