17 references to GetParent
System.Windows.Forms (17)
winforms\Managed\System\WinForms\Application.cs (1)
4196
Debug.Assert(UnsafeNativeMethods.
GetParent
(handle) != Handle, "Always set the handle's parent to someone else before calling UnparkHandle");
winforms\Managed\System\WinForms\Control.cs (11)
2929
IntPtr parentHandle = UnsafeNativeMethods.
GetParent
(new HandleRef(this, Handle));
2949
parentHandle = UnsafeNativeMethods.
GetParent
(new HandleRef(null, parentHandle));
10826
UnsafeNativeMethods.
GetParent
(new HandleRef(null, topMostParent.Handle)) == IntPtr.Zero ? NativeMethods.WM_CHANGEUISTATE : NativeMethods.WM_UPDATEUISTATE,
10970
HandleRef parentHandle = new HandleRef(this, UnsafeNativeMethods.
GetParent
(new HandleRef(this, this.Handle)));
11971
IntPtr parentHandle = UnsafeNativeMethods.
GetParent
(new HandleRef(window, Handle));
12522
UnsafeNativeMethods.MapWindowPoints(NativeMethods.NullHandleRef, new HandleRef(null, UnsafeNativeMethods.
GetParent
(new HandleRef(window, InternalHandle))), ref rect, 2);
12672
IntPtr parentHandle = UnsafeNativeMethods.
GetParent
(new HandleRef(this, Handle));
12800
parentHandle = UnsafeNativeMethods.
GetParent
(new HandleRef(null, parentHandle));
14075
if (parent != null && UnsafeNativeMethods.
GetParent
(new HandleRef(window, InternalHandle)) == parent.InternalHandle &&
14429
hwndFocus = UnsafeNativeMethods.
GetParent
(new HandleRef(null, hwndFocus));
18407
IntPtr hWndParent = UnsafeNativeMethods.
GetParent
(new HandleRef(control, control.Handle));
winforms\Managed\System\WinForms\FileDialog.cs (1)
749
dialogHWnd = UnsafeNativeMethods.
GetParent
(new HandleRef(null, hWnd));
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
3840
IntPtr hWndParent = UnsafeNativeMethods.
GetParent
(new HandleRef(this, Handle));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
2765
hwnd != IntPtr.Zero; hwnd = UnsafeNativeMethods.
GetParent
(new HandleRef(null, hwnd))) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
1227
cc = Control.FromHandle(UnsafeNativeMethods.
GetParent
(new HandleRef(this, Handle))) as ContainerControl;
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (1)
262
return UnsafeNativeMethods.
GetParent
(new HandleRef(Host, Host.Handle));