Пример #1
0
        internal void Close()
        {
            User32.SetParent((int)Handle, 0);

            User32.CloseWindow(Handle);

            User32.DestroyWindow(Handle);
        }
Пример #2
0
        public virtual void Close()
        {
            this.Source?.RemoveHook(this.WndProc);
            this.Source?.Dispose();
            this.Source = null;

            User32.CloseWindow(this.Handle);
        }
Пример #3
0
 internal void Close()
 {
     if (Region != IntPtr.Zero)
     {
         Gdi32.SetWindowRgn(Handle, IntPtr.Zero, false);
         Gdi32.DeleteObject(Region);
     }
     User32.CloseWindow(_handle);
     User32.SetParent(_handle, IntPtr.Zero);
     User32.DestroyWindow(_handle);
 }
        private void CloseSelected_Click(object sender, RoutedEventArgs e)
        {
            Apply_ActionOnAll((chooser, row, col) =>
            {
                if (!chooser.SelectedApp.IsActive)
                {
                    return;
                }

                User32.CloseWindow(chooser.SelectedApp.HWND);
            });
        }
Пример #5
0
 internal void Close()
 {
     User32.CloseWindow(_handle);
     User32.SetParent(_handle, IntPtr.Zero);
     User32.DestroyWindow(_handle);
 }