为文字加背景色ATL
//话白色背景
COLORREF crColor1 = RGB(255, 255, 0);
COLORREF crColor = RGB(0,0,0);
CBrush brush;
brush.CreateSolidBrush(RGB( 255, 255, 255));
CRect tmrc = CRect(x+nDis-20-1,y+60,x+nDis-20-1+18,y+60+10);
pDC->FillRect(&tmrc,brush);
pDC->SetBkColor( RGB( 255, 255, 255) );
Str.Format(_T("00"));
pDC->SetTextColor(crColor);
pDC->TextOut(x+nDis-20,y+60,Str,Str.GetLength());
pDC->SetTextColor(crColor1);
Str.Format(_T(" 00 %s %s %s"),g_PrgrmStr[E_CHGPRGRMPANEL_LIST1],g_PrgrmStr[E_CHGPRGRMPANEL_LIST2],g_PrgrmStr[E_CHGPRGRMPANEL_LIST3]);
pDC->TextOut(x+nDis-20+20,y+60,Str,Str.GetLength());
补充:软件开发 , C++ ,