예제 #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);