7 references to GetHandleRef
System.Windows.Forms (7)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
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)
5498
HandleRef<HWND> ownerHwnd = owner is null ?
GetHandleRef
(activeHwnd) : GetSafeHandle(owner);
5710
HandleRef<HWND> ownerHwnd = owner is null ?
GetHandleRef
(activeHwnd) : GetSafeHandle(owner);
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());