void CMyView::OnMouseMove(UINT nFlags, CPoint point)
{
if(m_bIsLine)
{
CClientDC dc(this);
int nOldDrawMode = dc.SetROP2(R2_NOT);
dc.MoveTo(m_lbdPt);
dc.LineTo(m_lbuPt);
m_lbuPt = point;
dc.MoveTo(m_lbdPt);
dc.LineTo(m_lbuPt);
dc.SetROP2(nOldDrawMode);
}
CView::OnMouseMove(nFlags, point);
}
posted on 2007-04-10 16:48
云卷风 阅读(344)
评论(0) 编辑 收藏 引用