1. 首页
  2. 编程语言
  3. C++ 
  4. c++绘图工具用于画直线,圆,填充

c++绘图工具用于画直线,圆,填充

上传者: 2018-12-08 15:38:24上传 DSP文件 4.51KB 热度 59次
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)
用户评论