是否检测到全局双击? [英] Detecting global double clicks?

查看:84
本文介绍了是否检测到全局双击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检测全局(在我的表单和/或最小化表单时)双击.我希望用户双击另一种表单时弹出我的表单(我的程序是一个帮助程序).然后,当用户单击我的表单时,我的程序就会消失.

I need to detect global (off my form and/or when my form is minimized) double clicks. I want my form to pop up when the user double clicks on another form (my program is a helper program). Then my program will disappear when the user single clicks off my form.

推荐答案

您的应用程序通常不会收到在窗口外发生的鼠标事件的通知.我认为您将必须为此注册一个鼠标钩.例如,这是我在CP上找到的第一篇文章 [
Your application won''t normally receive notification of mouse events that happen off your window. I think you are going to have to register a mouse hook for this. For example here is the first article I found here on CP[^] for hooks in C#.


这篇关于是否检测到全局双击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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