如何设置按钮点击钩 [英] how to set hook on button click

查看:104
本文介绍了如何设置按钮点击钩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我想在sethook按钮单击事件上设置键盘钩.
请问我该如何实现?
谢谢,

In my application I want to set keyboardhook on sethook button click event.
please how can I achieve this?
Thanks,

推荐答案

如果按钮的格式属于您的进程,则根本不需要键盘钩.只需处理该按钮上的键盘事件即可.
If the button is in a form owned by your process, then you don''t need a keyboard hook at all. Just handle the keyboard events on that button.


您是否要单击按钮后设置键盘钩子?还是您想要上面的答案?
Do you mean you want to set a keyboard hook when the button has been clicked? Or did you want the answer above?


这篇关于如何设置按钮点击钩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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