HBRUSH CZuoyetryDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC,pWnd, nCtlColor);
switch(i)
{
case 1 :if(pWnd->GetDlgCtrlID()==IDC_STATIC1)
pDC->SetTextColor(m_color);
return hbr;
break;
case 2 :if(pWnd->GetDlgCtrlID()==IDC_STATIC2)
pDC->SetTextColor(m_color);
return hbr;
break;
case 3 :if(pWnd->GetDlgCtrlID()==IDC_STATIC3)
pDC->SetTextColor(m_color);
return hbr;
break;
case 4 :if(pWnd->GetDlgCtrlID()==IDC_STATIC4)
pDC->SetTextColor(m_color);
return hbr;
break;
case 5 :if(pWnd->GetDlgCtrlID()==IDC_STATIC5)
pDC->SetTextColor(m_color);
return hbr;
break;
}
{
HBRUSH hbr = CDialog::OnCtlColor(pDC,pWnd, nCtlColor);
switch(i)
{
case 1 :if(pWnd->GetDlgCtrlID()==IDC_STATIC1)
pDC->SetTextColor(m_color);
return hbr;
break;
case 2 :if(pWnd->GetDlgCtrlID()==IDC_STATIC2)
pDC->SetTextColor(m_color);
return hbr;
break;
case 3 :if(pWnd->GetDlgCtrlID()==IDC_STATIC3)
pDC->SetTextColor(m_color);
return hbr;
break;
case 4 :if(pWnd->GetDlgCtrlID()==IDC_STATIC4)
pDC->SetTextColor(m_color);
return hbr;
break;
case 5 :if(pWnd->GetDlgCtrlID()==IDC_STATIC5)
pDC->SetTextColor(m_color);
return hbr;
break;
}