Exemplo n.º 1
0
 private void WinEventHooker_EvFocused(object sender, WinEventHooker.WinEventHookEventArgs e)
 {
     if (!IsForeground && DescendantHwndInfo.IsDescendantHwnd(e.Hwnd, Hwnd.Handle))
     {
         IsForeground = true;
     }
 }
Exemplo n.º 2
0
 private void WinEventHooker_EvLocationChanged(object sender, WinEventHooker.WinEventHookEventArgs e)
 {
     lock (_synObj)
     {
         _isLocationChanged = true;
     }
 }
Exemplo n.º 3
0
 private void WinEventHooker_EvForegroundChanged(object sender, WinEventHooker.WinEventHookEventArgs e)
 {
     IsForeground = (e.Hwnd == Hwnd.Handle);
     if (!IsForeground && e.ThreadId == _qnThreadId)
     {
         var wndClassName = WinApi.GetWindowClass(e.Hwnd);
         if (wndClassName == "#32770")
         {
             if (EvDialogPopUp != null)
             {
                 EvDialogPopUp(this, new DialogEventArgs
                 {
                     DialogHwnd = e.Hwnd
                 });
             }
         }
     }
 }
Exemplo n.º 4
0
 private void WinEventHooker_EvTextChanged(object sender, WinEventHooker.WinEventHookEventArgs e)
 {
     Editor.ClearCachedText();
 }