If you are using MFC, and your project is a CDialog based project add the code below
AFTER the line
CDialog::OnPaint(); in OnPaint method of your CDialog derived class.
CRect rc;
CBrush brush;
COLORREF clr=RGB(0,125,130); //here you put the desired color
brush.CreateSolidBrush(clr);
CWnd* pWnd = GetDlgItem(IDC_EDIT1);
pWnd->GetClientRect(&rc);
CDC* pDC=pWnd->GetDC();
pDC->SetBkMode(OPAQUE);
pDC->FillRect(&rc,&brush);
InvalidateRect(&rc);
This code works for sure, I have tried it myself.
If you have another type of project tell me, and give more details about it.
Hope this is helpful, s-)
Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...