摘要:
voidCGraphic1View::OnMouseMove(UINTnFlags,CPointpoint){if(MK_LBUTTON==nFlags){CClientDCdc(this);intoldmode=dc.SetROP2(R2_NOTXORPEN);CPenpen(m_nLineStyle,m_nLineWidth,m_clr),*oldpen;oldpen=dc.SelectObject(&pen);dc.MoveTo(m_ptOrigin);dc.LineTo(m_ptEnd);m_ptEnd=point;dc.MoveTo(m_ptOrigin);dc.LineTo 阅读全文