Пример #1
0
		public NativeHotKey(IntPtr hWnd, ModKeyFlags modKey, System.Windows.Forms.Keys key)
		{
			this.hWnd = hWnd;
			this.lParam = new IntPtr((int)modKey | ((int)key * 0x10000));

			NativeMethods.RegisterHotKey(hWnd, WindowsMessage.WM_HOTKEY, modKey, key);
		}
Пример #2
0
        public NativeHotKey(IntPtr hWnd, ModKeyFlags modKey, System.Windows.Forms.Keys key)
        {
            this.hWnd   = hWnd;
            this.lParam = new IntPtr((int)modKey | ((int)key * 0x10000));

            NativeMethods.RegisterHotKey(hWnd, WindowsMessage.WM_HOTKEY, modKey, key);
        }
Пример #3
0
 public static extern int RegisterHotKey(IntPtr hWnd, WindowsMessage id, ModKeyFlags modKey, System.Windows.Forms.Keys key);
Пример #4
0
		public static extern int RegisterHotKey(IntPtr hWnd, WindowsMessage id, ModKeyFlags modKey, System.Windows.Forms.Keys key);