예제 #1
0
 public static void ShowActiveTriggers()
 {
     for (wnd w = default; ;)
     {
         w = wnd.findFast(null, "Au.Triggers.Hooks", messageOnly: true, w);
         if (w.Is0)
         {
             break;
         }
         Api.AllowSetForegroundWindow(w.ProcessId);
         w.Post(Api.WM_USER + 30);
     }
 }
예제 #2
0
파일: UacDragDrop.cs 프로젝트: qmgindi/Au
        //SendMessage from _wTransparent on WM_CREATE.
        public static void OnTransparentWindowCreated(wnd wTransparent)
        {
            var x = s_inst;

            if (x?._isDragMode ?? false)
            {
                x._wTransparent = wTransparent;
                x._SetTransparentSizeZorder();
            }
            else
            {
                wTransparent.Post(Api.WM_USER);                //let it close self
            }
        }
예제 #3
0
 void _Delete(bool disposing = false)
 {
     lock (this) {
         if (_visible)
         {
             Api.Shell_NotifyIcon(Api.NIM_DELETE, _NewND());
             _visible = false;
         }
         if (disposing && !_w.Is0)
         {
             if (!Api.DestroyWindow(_w))
             {
                 _w.Post(Api.WM_CLOSE);
             }
             _w = default;
         }
     }
 }