16 references to GetActiveWindow
System.Windows.Forms (13)
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
428PInvokeCore.GetWindowThreadProcessId(PInvoke.GetActiveWindow(), out uint pid);
System\Windows\Forms\Application.ThreadWindows.cs (1)
61_activeHwnd = PInvoke.GetActiveWindow();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4617HWND hwndActive = PInvoke.GetActiveWindow();
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (3)
138HWND hwndActive = PInvoke.GetActiveWindow(); 411HWND hwndActive = PInvoke.GetActiveWindow(); 537var activeWindowHandle = Control.GetHandleRef(PInvoke.GetActiveWindow());
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
204ownerHwnd = Control.GetHandleRef(PInvoke.GetActiveWindow());
System\Windows\Forms\Dialogs\MessageBox.cs (1)
459handle = owner is null ? Control.GetHandleRef(PInvoke.GetActiveWindow()) : Control.GetSafeHandle(owner);
System\Windows\Forms\Form.cs (2)
5477HWND activeHwnd = PInvoke.GetActiveWindow(); 5716HWND activeHwnd = PInvoke.GetActiveWindow();
System\Windows\Forms\Help\Help.cs (2)
137HandleRef<HWND> handle = parent is not null ? (new(parent)) : Control.GetHandleRef(PInvoke.GetActiveWindow()); 214HandleRef<HWND> handle = parent is not null ? new(parent) : Control.GetHandleRef(PInvoke.GetActiveWindow());
System\Windows\Forms\ToolTip\ToolTip.cs (1)
308HWND hwnd = PInvoke.GetActiveWindow();
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
89HWND hwndActivating = PInvoke.GetActiveWindow();
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
456if (uiService?.GetDialogOwnerWindow() is { } hWnd && hWnd.Handle != 0 && hWnd.Handle != PInvoke.GetActiveWindow())
System\Windows\Forms\Design\FolderNameEditor.FolderBrowser.cs (1)
63owner is not null ? (HWND)owner.Handle : PInvoke.GetActiveWindow(),