如何使用C ++调用单击函数 [英] How to call a function on click using C++

查看:78
本文介绍了如何使用C ++调用单击函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户点击鼠标时,只想要求调用一个函数。

是否需要添加特定的库?



谢谢。

解决方案

正如许多其他人在发布问题之前所说的那样,你应该自己做一些工作,然后询问你不理解的内容。这个问题非常简单,谷歌会为你提供很多线索,因为同样的问题已被多次回答。



例如:





http://msdn.microsoft.com/en-us/library/windows/desktop/gg153548(v = vs.85).aspx [ ^ ]



http://xoax.net/cpp/crs/win32/lessons/Lesson7 / [ ^ ]



AND



http://www.youtube.com/watch?v=da3DQymwiaQ [ ^ ]


阅读本文:

http ://stackoverflow.com/questions/3744597/call-a-delegate-from-click-event-using-c-cli [ ^ ]


Just want to ask to call a function when the user click on the mouse.
Is there a specific library that needed be added in?

Thanks.

解决方案

As many others have said before posting a question you should do some work yourself and then ask about what you don''t understand. This question is quite elementary and Google will provide you with many leads as the same question has been answered many times.

For example:


http://msdn.microsoft.com/en-us/library/windows/desktop/gg153548(v=vs.85).aspx[^]

http://xoax.net/cpp/crs/win32/lessons/Lesson7/[^]

AND

http://www.youtube.com/watch?v=da3DQymwiaQ[^]


Read this :
http://stackoverflow.com/questions/3744597/call-a-delegate-from-click-event-using-c-cli[^]


这篇关于如何使用C ++调用单击函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆