// TODO: Return a different brush if the default is not desired
if(nCtlColor==CTLCOLOR_DLG)
//pDC->SetTextColor(RGB(255,0,0));
{HBRUSH brush=CreateSolidBrush(RGB(181,196,52));
return brush;
}
HBRUSH CLD_3701View::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CFormView::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
// TODO: Return a different brush if the default is not desired
if(nCtlColor==CTLCOLOR_DLG)
{HBRUSH brush=CreateSolidBrush(RGB(181,196,52));
pDC->SetTextColor(RGB(0,0,0));
pDC->SetBkColor(RGB(181,196,52));
return brush;
}