如何保存小弟我画曲线点的坐标*

怎么保存我画曲线点的坐标*************************************************
在视图上(视图继承与CFromview)
我用鼠标画一条线,,怎么吧这条线上的点的坐标保存起来呢?
请指点!

------解决方案--------------------
CArray <CPoint,CPoint> m_ptArray;
重载Mouse的move,LButtonDown,LButtonUp等函数,记录数据进去

汗一下lz的名字。。。
------解决方案--------------------
BOOL LineDDA(
int nXStart, // x-coordinate of line 's starting point
int nYStart, // y-coordinate of line 's starting point
int nXEnd, // x-coordinate of line 's ending point
int nYEnd, // y-coordinate of line 's ending point
LINEDDAPROC lpLineFunc, // pointer to callback function
LPARAM lpData // pointer to application-defined data
);

------解决方案--------------------
Clist应该比较简单一点
Mousemove的消息肯定要响应的 在里面把point的数据保存在clist的对象中
------解决方案--------------------


为了方便程序移植,还是多使用stl吧。
struct mypoint
{
int m_pointx;
int m_pointy;
}

vector <mypoint> PointVec;
------解决方案--------------------
响应MOUSE事件:move,LButtonDown,LButtonUp
定义一个数组每Down一次记录一次当前坐标就行了