正在加载图片...
5.2 void CMove TestView OnMouseMove UINT nFlags, CPoint point if(drawtrack) CClientDC dc(this) dc SetPixel(point x, point y, RGB(0,0, o)) struct pointstruct *newpoint=new struct pointstruct; newpoint->point X=pointX, wpoint->point y-point. y, newpoint->next=NULL f(pointlisthead==NULL) pointlisthead=pointlisttrainewpoint els5.2 void CMoveTestView::OnMouseMove(UINT nFlags, CPoint point) { if(drawtrack) { CClientDC dc(this); dc.SetPixel(point.x,point.y,RGB(0,0,0)); struct pointstruct *newpoint=new struct pointstruct; newpoint->point.x=point.x; newpoint->point.y=point.y; newpoint->next=NULL; if(pointlisthead= =NULL) { pointlisthead=pointlisttrail=newpoint; } else { pointlisttrail->next=newpoint; pointlisttrail=newpoint; } } CView::OnMouseMove(nFlags, point); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有