【文件属性】:
文件名称:c++绘图工具用于画直线,圆,填充
文件大小:5KB
文件格式:DSP
更新时间:2013-05-24 18:25:44
huitu
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(PloygonPointNum==0)