I have created an Edit control in the resource editor. I want to change to background color.
this is what i have tried
CRect editRect;
m_CreditText->GetClientRect(&editRect);
CClientDC dc (this);
CBrush * brushSR;
brushSR = new CBrush(RGB(255,0,0));

dc.FillRect(&editRect,brushSR);

delete brushSR;
could anybody give me any guidance.