23 references to GWL_HWNDPARENT
System.Windows.Forms (17)
System\Windows\Forms\Application.ModalApplicationContext.cs (1)
30
HWND parentHandle = (HWND)PInvokeCore.GetWindowLong(MainForm, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
);
System\Windows\Forms\Application.ThreadContext.cs (1)
750
hwndOwner = (HWND)PInvokeCore.GetWindowLong(CurrentForm, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1476
PInvokeCore.SetWindowLong(_dropDownHolder, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
, this);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
268
hWnd = (HWND)PInvokeCore.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1431
PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
, ToolStripManager.ModalMenuFilter.ActiveHwnd);
1438
PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
, DropDownOwnerWindow);
System\Windows\Forms\Form.cs (8)
3407
PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
, TaskbarOwner);
3903
HWND ownerHandle = (HWND)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
);
3958
hWndOwner = (HWND)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
);
5489
if (PInvokeCore.GetWindowLong(ownerHwnd, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
) == HWND)
5495
PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
, ownerHwnd);
5743
if (PInvokeCore.GetWindowLong(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
) == Handle)
5762
PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
, ownerHwnd);
6128
PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
, ownerHwnd);
System\Windows\Forms\Form.EnumThreadWindowsCallback.cs (3)
25
HWND parent = (HWND)PInvokeCore.GetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
);
44
nint oldValue = PInvokeCore.SetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
, 0);
57
PInvokeCore.SetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
, ownerHwnd);
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (3)
110
hWnd = (HWND)PInvokeCore.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
);
141
PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
, parent.Handle);
157
PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
, IntPtr.Zero);
System\ComponentModel\Design\DesignerActionUI.cs (1)
722
WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
,
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (2)
118
WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
);
203
hWndDescendant = (HWND)PInvokeCore.GetWindowLong(hWndDescendant, WINDOW_LONG_PTR_INDEX.
GWL_HWNDPARENT
);