Exemplo n.º 1
0
 private int CallNextHook(int code, MouseMessage message, ref MouseState state)
 {
     if (code >= 0)
     {
         MouseHookedEventArgs e = new MouseHookedEventArgs(message, ref state);
         this.OnMouseHooked(e);
         if (e.Cancel)
             return -1;
     }
     return CallNextHookEx(hook, code, message, ref state);
 }
Exemplo n.º 2
0
 ///<summary>
 ///新しいインスタンスを作成する。
 ///</summary>
 ///<param name="message">マウス操作の種類を表すMouseMessage値の一つ。</param>
 ///<param name="state">マウスの状態を表すMouseState構造体。</param>
 internal MouseHookedEventArgs(MouseMessage message, ref MouseState state)
 {
     this.message = message;
     this.state = state;
 }
Exemplo n.º 3
0
 private static extern int CallNextHookEx(IntPtr hook, int code, MouseMessage message, ref MouseState state);