OpenTween.HookGlobalHotkey.WndProc C# (CSharp) Method

WndProc() protected method

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void
        protected override void WndProc(ref Message m)
        {
            const int WM_HOTKEY = 0x312;
            if (m.Msg == WM_HOTKEY)
            {
                if (_hotkeyID.ContainsKey(m.WParam.ToInt32()))
                {
                    if (HotkeyPressed != null)
                    {
                        HotkeyPressed(this, _hotkeyID[m.WParam.ToInt32()].KeyEvent);
                    }
                }
                return;
            }
            base.WndProc(ref m);
        }