Code:
HBRUSH CAboutDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if (pWnd->GetDlgCtrlID() == IDC_EDIT2)
{
pDC->SetTextColor(RGB(255, 0, 0));
hbr = m_brush;
}
return hbr;
}
this code works beautifully when changing an edit box (IDC_EDIT2), but if i put a static name instead like IDC_STATIC1, the static stays the same color (it doesnt change colors), anyone know how this can be solved? im just trinyg to change 1 static and leave the rest alone