VC-MFC怎样作出随着鼠标按下移动扩大缩小的空心圆
这个是我写在鼠标移动的消息代码~~作出的圆却是实心的。。voidCMenuView::OnMouseMove(UINTnFlags,CPointpoint){//TODO...
这个是我写在鼠标移动的消息代码~~作出的圆却是实心的。。
void CMenuView::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CClientDC dc(this);
dc.SetROP2(R2_NOT);
dc.Ellipse(m_StartPoint.x,m_StartPoint.y,m_TempPoint.x,m_TempPoint.y);
dc.Ellipse(m_StartPoint.x,m_StartPoint.y,point.x,point.y);
m_TempPoint=point;
CView::OnMouseMove(nFlags, point);
}
但我想要的效果是空心的。。代码该怎样写??高手请指教!!谢谢.
或者联系QQ:252352963 教我也行~~嘿嘿.. 展开
void CMenuView::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CClientDC dc(this);
dc.SetROP2(R2_NOT);
dc.Ellipse(m_StartPoint.x,m_StartPoint.y,m_TempPoint.x,m_TempPoint.y);
dc.Ellipse(m_StartPoint.x,m_StartPoint.y,point.x,point.y);
m_TempPoint=point;
CView::OnMouseMove(nFlags, point);
}
但我想要的效果是空心的。。代码该怎样写??高手请指教!!谢谢.
或者联系QQ:252352963 教我也行~~嘿嘿.. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询