20 references to GWL_HWNDPARENT
System.Windows.Forms (20)
winforms\Managed\System\WinForms\Application.cs (2)
3428
hwndOwner = new HandleRef(null, UnsafeNativeMethods.GetWindowLong(new HandleRef(currentForm, currentForm.Handle), NativeMethods.
GWL_HWNDPARENT
));
4345
IntPtr parentHandle = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, MainForm.Handle), NativeMethods.
GWL_HWNDPARENT
);
winforms\Managed\System\WinForms\Form.cs (13)
3696
UnsafeNativeMethods.SetWindowLong(new HandleRef(this, Handle), NativeMethods.
GWL_HWNDPARENT
, TaskbarOwner);
4452
ownerHandle = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, Handle), NativeMethods.
GWL_HWNDPARENT
);
4497
hWndOwner = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, Handle), NativeMethods.
GWL_HWNDPARENT
);
6107
if (UnsafeNativeMethods.GetWindowLong(new HandleRef(owner, hWndOwner), NativeMethods.
GWL_HWNDPARENT
) == Handle) {
6113
hWndOldOwner = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, Handle), NativeMethods.
GWL_HWNDPARENT
);
6114
UnsafeNativeMethods.SetWindowLong(new HandleRef(this, Handle), NativeMethods.
GWL_HWNDPARENT
, new HandleRef(owner, hWndOwner));
6208
if (UnsafeNativeMethods.GetWindowLong(new HandleRef(owner, hWndOwner), NativeMethods.
GWL_HWNDPARENT
) == Handle) {
6214
hWndOldOwner = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, Handle), NativeMethods.
GWL_HWNDPARENT
);
6215
UnsafeNativeMethods.SetWindowLong(new HandleRef(this, Handle), NativeMethods.
GWL_HWNDPARENT
, new HandleRef(owner, hWndOwner));
6442
UnsafeNativeMethods.SetWindowLong(new HandleRef(this, Handle), NativeMethods.
GWL_HWNDPARENT
, ownerHwnd);
7755
IntPtr parent = UnsafeNativeMethods.GetWindowLong(hRef, NativeMethods.
GWL_HWNDPARENT
);
7776
UnsafeNativeMethods.SetWindowLong(hRef, NativeMethods.
GWL_HWNDPARENT
, NativeMethods.NullHandleRef);
7788
UnsafeNativeMethods.SetWindowLong(hRef, NativeMethods.
GWL_HWNDPARENT
, hRefOwner);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (3)
1691
UnsafeNativeMethods.SetWindowLong(new HandleRef(dropDownHolder, dropDownHolder.Handle), NativeMethods.
GWL_HWNDPARENT
, new HandleRef(this, Handle));
1735
UnsafeNativeMethods.SetWindowLong(new HandleRef(dropDownHolder, dropDownHolder.Handle), NativeMethods.
GWL_HWNDPARENT
, new HandleRef(this, Handle));
5683
hWnd = UnsafeNativeMethods.GetWindowLong(new HandleRef(null, hWnd), NativeMethods.
GWL_HWNDPARENT
);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1672
UnsafeNativeMethods.SetWindowLong(new HandleRef(this, Handle), NativeMethods.
GWL_HWNDPARENT
, ToolStripManager.ModalMenuFilter.ActiveHwnd);
1680
UnsafeNativeMethods.SetWindowLong(new HandleRef(this, Handle), NativeMethods.
GWL_HWNDPARENT
, ownerHandle);