如何使用C ++调用单击函数 [英] How to call a function on click using 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 [ ^ ]
Just want to ask to call a function when the user click on the mouse. 这篇关于如何使用C ++调用单击函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
http ://stackoverflow.com/questions/3744597/call-a-delegate-from-click-event-using-c-cli [ ^ ]
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[^]