public partial class Form1 : Form,IMessageFilter
{
public Form1()
{
InitializeComponent();
Application.AddMessageFilter(this);
}
private int WM_LBUTTONDBLCLK = 0x0203;
public bool PreFilterMessage(ref Message msg)
{
if (msg.HWnd == this.radioButton1.Handle && msg.Msg == WM_LBUTTONDBLCLK)
{
MessageBox.Show("触发双击事件");
}
return true;
}
}
源文档 <http://topic.csdn.net/u/20101110/21/c38130de-7edb-4527-b3da-e964a3c37fc7.html?99703>
相关文章:
-
2022-12-23
-
2021-12-12
-
2022-01-05
-
2022-12-23
-
2021-11-30
-
2021-08-14
-
2021-12-24
-
2022-12-23