VS2010 MFC 控件色彩

VS2010 MFC 控件颜色
菜鸟请教:在VS2010 MFC中怎么同时给两个控件设置颜色,并且都是可以变的?
------解决思路----------------------
有个消息函数叫WM_CTCOLOR 可以修改控件前景色和背景色
------解决思路----------------------
BEGIN_MESSAGE_MAP(CChooseDlg, CDialog)
//{{AFX_MSG_MAP(CChooseDlg)
ON_WM_CTLCOLOR()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()



BOOL CChooseDlg::OnInitDialog() 
{
CDialog::OnInitDialog();

m_TitleBkBrush.CreateSolidBrush(RGB(200,200,200));

return TRUE;  // return TRUE unless you set the focus to a control
              // EXCEPTION: OCX Property Pages should return FALSE
}


HBRUSH CChooseDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

if((CTLCOLOR_STATIC)&&(pWnd->GetDlgCtrlID()==IDC_TITLE_STATIC))
{
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(RGB(236,80,80));

//此处设置背景的颜色
return (HBRUSH)m_TitleBkBrush.GetSafeHandle();
}

// TODO: Return a different brush if the default is not desired
return hbr;
}