HBRUSH CTuDialogo::OnCtlColor(CDC* dc, CWnd* wnd, UINT ctlcolor)
{
HBRUSH hbr = CDialog::OnCtlColor(dc,wnd, ctlcolor);
//Obteniendo el id del control que quieres cambiar de color de fuente
if (wnd->GetDlgCtrlID() == IDC_EDIT_COLORIDO)
{
dc->SetTextColor(RGB(255, 0, 0)); // Rojo
hbr = m_brush;
}
return hbr;
}