你派生一个CSTATIC的类,在OnPaint()函数里面,CBrush brush(RGB(0,128,192));CBrush brushFrame(framecolor);//边框颜色,framecolor---为全局变量dc.FillRect(&rect,&brush);dc.FrameRect(&rect,&brushFrame);dc.SetBkMode(TRANSPARENT);dc.SetTextColor(RGB(255,255,255));CFont * pOldFont;pOldFont=SetCaptionFont(&dc);dc.DrawText(strText,&rect,DT_CENTE...
|