예제 #1
0
        protected override void WndProc(ref Message m)
        {
            if (m.Msg == NativeMethods.WM_HOTKEY)
            {
                Keys keyData = HotKeys.GetKeyData(m.WParam);
                if (keyData != Keys.None)
                {
                    KeyEventArgs args = new KeyEventArgs(keyData);
                    OnHotKeyPressed(args);
                }
            }

            base.WndProc(ref m);
        }