// TODO: Change any attributes of the DC here if (nCtlColor == CTLCOLOR_STATIC || nCtlColor == CTLCOLOR_BTN) { pDC->SetBkMode(TRANSPARENT); return (HBRUSH)m_brush; } // TODO: Return a different brush if the default is not desired pDC->SetBkMode(TRANSPARENT);
HBRUSH CLoginDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if (nCtlColor == CTLCOLOR_STATIC || nCtlColor == CTLCOLOR_BTN)
{
pDC->SetBkMode(TRANSPARENT);
return (HBRUSH)m_brush;
}
// TODO: Return a different brush if the default is not desired
pDC->SetBkMode(TRANSPARENT);
return hbr;
}