spoon feeding the answer.
CngfhnDlg::CngfhnDlg(CWnd* pParent )
: CDialog(CngfhnDlg::IDD, pParent)
{
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
m_brush.CreateSolidBrush(RGB(0, 255, 0));
}
HBRUSH CngfhnDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
hbr = m_brush;
return hbr;
}