コード例 #1
0
ファイル: NativeHotKey.cs プロジェクト: twinkfrag/Timepiece
		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
ファイル: NativeHotKey.cs プロジェクト: twinkfrag/Timepiece
        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
ファイル: NativeMethods.cs プロジェクト: twinkfrag/Timepiece
		public static extern int RegisterHotKey(IntPtr hWnd, WindowsMessage id, ModKeyFlags modKey, System.Windows.Forms.Keys key);