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); } }
//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 } }
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; } } }