示例#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;
         }
     }
 }