pen.CreatePen(PS_SOLID,1,RGB(166,202,240));
dc.SetROP2 (R2_XORPEN);
dc.SelectObject (&pen);
dc.MoveTo (oldp.x,0);
//檫除旧线
dc.LineTo (oldp.x,rect.bottom );
dc.MoveTo (0,oldp.y);
dc.LineTo (rect.right ,oldp.y);
dc.MoveTo (point.x,0); //画当前位置线
dc.LineTo (point.x,rect.bottom );
dc.MoveTo (0,point.y);
dc.LineTo (rect.right ,point.y);
oldp = point;
//保存当前位置