HBRUSH CEstatisDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); int id = pWnd->GetDlgCtrlID(); if (id == IDC_EDIT4) { //pDC->SetTextColor(RGB(0, 0, 0)); pDC->SetBkColor(RGB(255, 0, 0)); if (!m_whitebrush) m_whitebrush = CreateSolidBrush(RGB(255, 0,0)); hbr = m_whitebrush; } return hbr; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)