圆随鼠标点击移动
圆随鼠标点击移动
if(m_Shape==0)
{
rect.left=m_x-50;
rect.right=m_x+50;
rect.top=m_y-50;
rect.bottom=m_y+50;
pDC->Ellipse(▭);
}
else
{
rect.left=m_x-50;
rect.right=m_x+50;
rect.top=m_y-30;
rect.bottom=m_y+30;
pDC->Rectangle(▭);
}
下载地址
用户评论
还行,代码简单易懂,适合初学者