在吗?您有vc++编写的扫雷代码吗?
1个回答
2015-12-05
展开全部
class MyButton : public CWindowImpl<MyButton>
{
public:
MyButton(){}
~MyButton(){}
BEGIN_MSG_MAP_EX(MyButton)
MESSAGE_HANDLER(WM_PAINT,OnPaint)
MESSAGE_HANDLER(WM_CREATE,OnCreate)
MESSAGE_HANDLER(WM_LBUTTONDOWN,OnLButtonDown)
MESSAGE_HANDLER(WM_MOUSEMOVE,OnMouseMove)
MESSAGE_HANDLER(WM_MOUSEHOVER,OnMouseHover)
MESSAGE_HANDLER(WM_MOUSELEAVE,OnMouseLeave)
REFLECT_NOTIFICATIONS()
END_MSG_MAP()
{
public:
MyButton(){}
~MyButton(){}
BEGIN_MSG_MAP_EX(MyButton)
MESSAGE_HANDLER(WM_PAINT,OnPaint)
MESSAGE_HANDLER(WM_CREATE,OnCreate)
MESSAGE_HANDLER(WM_LBUTTONDOWN,OnLButtonDown)
MESSAGE_HANDLER(WM_MOUSEMOVE,OnMouseMove)
MESSAGE_HANDLER(WM_MOUSEHOVER,OnMouseHover)
MESSAGE_HANDLER(WM_MOUSELEAVE,OnMouseLeave)
REFLECT_NOTIFICATIONS()
END_MSG_MAP()
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询