protected override void WndProc(ref Message m) { switch (m.Msg) { case WM_HOTKEY: HotKeyPressed((short)m.WParam); break; case 132: break; case 522: var bytes = BitConverter.GetBytes((int)m.WParam); var y = BitConverter.ToInt16(bytes, 2); VolBar.DoScroll(this, new ScrollEventArgs((ScrollEventType)(m.WParam.ToInt32() & 0xffff), y)); break; default: base.WndProc(ref m); break; } }