setstep不起作用啊,他还是默认的分成了十段....
重绘也没起作用
void CSuperProgressCtrl::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: 在此处添加消息处理程序代码
CRect rect,newrect; // client/region area rectangle
int nRange; // The range of the progress control
int low,high;
int pos;
SetStep(1);
CBrush Brush;
pos = GetPos();
Brush.CreateSolidBrush(RGB(255,255,25));
GetClientRect(rect);
GetRange(low,high); nRange = high - low ;
newrect.CopyRect(&rect);
newrect.top = rect.top + (nRange - pos)*rect.bottom/nRange;

dc.FillRect(newrect,&Brush);}