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);}
重绘也没起作用
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);}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货