void CSketcherView::OnMouseMove(UINT nFlags, CPoint point) { // Define a Device Context object for the view CClientDC aDC(this); aDC.SetROP2(R2_NOTXORPEN); if ( nFlags & MK_LBUTTON ) { m_SecondPoint = point; { } // Create a temporary element of the type and color // that is recorded in the doc object and draw it m_pTempElement = CreateElement(); m_pTempElement->Draw( &aDC ); } //CView::OnMouseMove(nFlags, point); }