我做了个模拟轨迹的程序,就是一个圆沿一条直线平滑的运动,但现在我的这个圆沿轨迹运动时,闪的很厉害,而且看起来不连贯,我的settimer的值放大,缩小多是一样的!请问我是如何改进?CPen *newPen,*oldPen;
CGdiObject *newBrush,*oldBrush;
newPen=new CPen(PS_SOLID,1,RGB(234,54,34));
oldPen=pDC->SelectObject(newPen);
newBrush=new CBrush(RGB(234,54,34)); 
oldBrush=pDC->SelectObject(newBrush);
pDC->Ellipse((int)(m_bX-6.5),(int)(m_bY-6.5),(int)(m_bX+6.5),(int)(m_bY+6.5));
delete newPen;
delete newBrush;这段是放在OnDraw(CDC* pDC)函数中if(!m_Tend)
if(m_StartPoint.x-m_LastEndPoint.x<0)
{    m_bX=m_StartPoint.x;
     m_border=m_LastEndPoint.x;
     m_Tend=1;
}
else
{
     m_bX=m_LastEndPoint.x;
     m_border=m_StartPoint.x;
m_Tend=1;
}
else if(m_bX<m_border)
{
m_bX+=(5*m_Tend);
m_bY=(int)((float)(m_LastEndPoint.y-m_StartPoint.y)/(float)(m_LastEndPoint.x-m_StartPoint.x)*(m_bX-m_StartPoint.x)+m_StartPoint.y);
}
else
{
m_Tend=0;
}
InvalidateRect(NULL);
这上面是ontimer函数