HBRUSH CStaticDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if(pWnd->GetDlgCtrlID()==IDC_STATIC1)
{
pDC->SetBkColor(RGB(100,100,2));
pDC->SetTextColor(RGB(20,244,21));
// CDC *dc=m_Static.GetDC();
// dc->SetBkColor(RGB(100,100,2));
}
// TODO: Return a different brush if the default is not desired
return hbr;
}
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if(pWnd->GetDlgCtrlID()==IDC_STATIC1)
{
pDC->SetBkColor(RGB(100,100,2));
pDC->SetTextColor(RGB(20,244,21));
// CDC *dc=m_Static.GetDC();
// dc->SetBkColor(RGB(100,100,2));
}
// TODO: Return a different brush if the default is not desired
return hbr;
}