Input Widget - left click = focus() only, disable all other mouse events

This commit is contained in:
andres.delikat 2011-07-09 22:07:13 +00:00
parent 9419e02091
commit 003b7ebebf
1 changed files with 34 additions and 0 deletions

View File

@ -190,6 +190,40 @@ namespace BizHawk.MultiClient
e.Handled = true;
}
protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case 0x0201: //WM_LBUTTONDOWN
{
this.Focus();
return;
}
//case 0x0202://WM_LBUTTONUP
//{
// return;
//}
case 0x0203://WM_LBUTTONDBLCLK
{
return;
}
case 0x0204://WM_RBUTTONDOWN
{
return;
}
case 0x0205://WM_RBUTTONUP
{
return;
}
case 0x0206://WM_RBUTTONDBLCLK
{
return;
}
}
base.WndProc(ref m);
}
protected override void OnGotFocus(EventArgs e)
{
//base.OnGotFocus(e);