鼠标钩问题[已解决] [英] Mouse Hook problem [solved]

查看:80
本文介绍了鼠标钩问题[已解决]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我在捕获任何窗口标题栏上的鼠标单击时遇到问题.我坐在一个全局鼠标钩上,如下所示:钩子和DLL [ ].现在,我可以捕获除窗口标题栏上的单击以外的所有单击.谁能向我解释问题所在,如何解决?

Hi all!! I have a problem with catching mouse clicks on any window''s title bar. I''ve sat a global mouse hook as shown here: Hooks and DLLs[]. Now I can catch all clicks except the clicks on window''s title bar. Can anybody explain me what''s the problem and how can I fix this? thank you in advance.

推荐答案

全局鼠标钩子无法区分单击或窗口标题栏与其他单击.我怀疑在确定是否单击了鼠标时出错.
A global mouse hook does not distinguish between clicks or a window''s title bar and other clicks. I suspect an error in determining if a mouse was clicked.


忘记捕捉"WM_NCLBUTTONDOWN"消息!谢谢大家!! :)
forgotten to catch "WM_NCLBUTTONDOWN" message! thanks to all!! :)


这篇关于鼠标钩问题[已解决]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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