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