背景色変更(OnCtrlColor)
HBRUSH CMyWnd::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr; if (IDC_CTRL != pWnd->GetDlgCtrlID()) { hbr = ::GetSysColorBrush(COLOR_WINDOW); pDC->SetBkColor(::GetSysColor(COLOR_WINDOW)); } else { hbr = CWnd::OnCtlColor(pDC, pWnd, nCtlColor); } return hbr; }