我想话动态画曲线图,怎样在ONDRAW()中处理呀????

解决方案 »

  1.   

    先把点计算好,在用Polyline画线.
    BOOL Polyline( 
    LPPOINT lpPoints, 
    int nCount ); 
    Parameters
    lpPoints 
    Pointer to an array of POINT structures or CPoint objects to connect. 
    nCount 
    The number of points in the array. This value must be at least two. 
    Return Value
    Nonzero if the function is successful; otherwise, it is zero.
      

  2.   

    专门定义一些控制曲线的全局变量(可以定义为CView的成员变量)在OnDraw的外面改变形状,然后调用Invalidate()函数重画