[KOE-125] Fixed mouse wheel handling for combo box

This commit is contained in:
Patrick Simpson 2017-06-29 18:57:13 +02:00
parent 1b509495c8
commit 334aeabc9d
2 changed files with 15 additions and 1 deletions

View File

@ -381,5 +381,17 @@ namespace Acacia.Controls
break;
}
}
protected override void DefWndProc(ref Message m)
{
switch ((WM)m.Msg)
{
// Forward mouse wheel messages to the list
case WM.MOUSEWHEEL:
m.Result = (IntPtr) User32.SendMessage(_list.Handle, m.Msg, m.WParam, m.LParam);
return;
}
base.DefWndProc(ref m);
}
}
}

View File

@ -45,7 +45,9 @@ namespace Acacia.Native
LBUTTONDOWN = 0x0201,
RBUTTONDOWN = 0x0204,
MBUTTONDOWN = 0x0207
MBUTTONDOWN = 0x0207,
MOUSEWHEEL = 0x020A,
}
}