HBRUSH hBrush1=CreateSolidBrush(SKINBLUE);
HBRUSH CToolDlgBar::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialogBar::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if(nCtlColor==CTLCOLOR_DLG) return hBrush1;
if(nCtlColor==CTLCOLOR_STATIC)
{
pDC->SetBkColor(SKINBLUE);
return hBrush1;
}
// TODO: Return a different brush if the default is not desired
return hbr;
}