c++绘图工具用于画直线,圆,填充
huitu void CHuituView::OnCircle() { if(m_nDrawType==2) m_nDrawType=0; else m_nDrawType=2; } void CHuituView::OnPloygon() //多边形 { if(m_nDrawType==3) m_nDrawType=0; else m_nDrawType=3; } void CHuituView::OnFill() { if(m_nDrawType==4) m_nDrawType=0; else m_nDrawType=4; } void CHuituView::OnLButtonDown(UINT nFlags, CPoint point) { switch(m_nDrawType) {case 1: m_pStart=point;break; case 2: m_pStart=point;break; case 3: if(Ployg onPointNum==0)
用户评论