This is the code for
STATIC control.
maybe can help you.
first you have to add
OnCtlColor event to draw the controls.
then use setbkcolor function.
HBRUSH CApplication1Dlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialogEx::OnCtlColor(pDC, pWnd, nCtlColor);
switch(nCtlColor){
case(CTLCOLOR_STATIC):{
pDC->SetBkColor(RGB(91,148,214));
break;
}
}
return hbr;
}