HBRUSH CAutoExeDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if(nCtlColor == CTLCOLOR_DLG || nCtlColor == CTLCOLOR_STATIC)
{
//pDC->SetTextColor(RGB(0,0,255));//字体色
pDC->SetBkColor(RGB(210,230,211));//字体背景色******
HBRUSH B = CreateSolidBrush(RGB(210,230,211)); //背景色
return B;
}
if(nCtlColor == CTLCOLOR_EDIT)
{
pDC->SetTextColor(RGB(0,0,255));//字体色
}
return hbr;
}