HBRUSH CDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if(nCtlColor==CTLCOLOR_BTN)
{
//pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(RGB(0,0,0));
//pDC->SetBkColor(RGB(233,233,220));
pDC->SetBkColor(RGB(155,155,155));
HBRUSH b=CreateSolidBrush(RGB(155,155,155));
return b;
}
// TODO: Change any attributes of the DC here
//return m_brush;//.CreateSolidBrush(RGB(255,255,255));
// TODO: Return a different brush if the default is not desired
return hbr;
}