2.添加鼠标响应函数 5.2 void CMove TestView: OnL Button Down(UINT nFlags, CPoint point) if(flag=="track") struct pointstruct * temppoint while(point listhead) temppoint = pointlisthead pointlisthead pointlisthead->next delete temppoint drawtrack=true CView: OnLButton Down(nF lags, point)2.添加鼠标响应函数 5.2 void CMoveTestView::OnLButtonDown(UINT nFlags, CPoint point) { if(flag= ="track") { struct pointstruct *temppoint; while(pointlisthead) { temppoint = pointlisthead; pointlisthead = pointlisthead->next; delete temppoint; } drawtrack=true; } CView::OnLButtonDown(nFlags, point); }