90 references to WINDOW_LONG_PTR_INDEX
System.Private.Windows.Core (8)
Windows\Win32\PInvokeCore.GetWindowLong.cs (3)
11
private static extern nint GetWindowLongW(HWND hWnd,
WINDOW_LONG_PTR_INDEX
nIndex);
14
private static extern nint GetWindowLongPtrW(HWND hWnd,
WINDOW_LONG_PTR_INDEX
nIndex);
27
public static nint GetWindowLong<T>(T hWnd,
WINDOW_LONG_PTR_INDEX
nIndex)
Windows\Win32\PInvokeCore.SetWindowLong.cs (5)
11
private static extern nint SetWindowLongW(HWND hWnd,
WINDOW_LONG_PTR_INDEX
nIndex, nint dwNewLong);
14
private static extern nint SetWindowLongPtrW(HWND hWnd,
WINDOW_LONG_PTR_INDEX
nIndex, nint dwNewLong);
16
public static nint SetWindowLong<T>(T hWnd,
WINDOW_LONG_PTR_INDEX
nIndex, nint newValue)
26
public static nint SetWindowLong<THwnd, TNewValue>(THwnd hWnd,
WINDOW_LONG_PTR_INDEX
nIndex, TNewValue newValue)
35
public static nint SetWindowLong<T>(T hWnd,
WINDOW_LONG_PTR_INDEX
nIndex, WNDPROC dwNewLong)
System.Windows.Forms (69)
System\Windows\Forms\ActiveX\AxHost.cs (4)
1250
IntPtr currentWndproc = PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC);
1265
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC, currentWndproc);
3211
void* wndProc = (void*)PInvokeCore.GetWindowLong(handle,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC);
3235
_wndprocAddr = PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC);
System\Windows\Forms\Application.cs (1)
1234
((WINDOW_STYLE)PInvokeCore.GetWindowLong(handle.Handle,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE)).HasFlag(WINDOW_STYLE.WS_CHILD),
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\Control.cs (8)
3635
get => (WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE);
3636
set => PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE, (nint)value);
3644
get => (WINDOW_STYLE)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE);
3645
set => PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE, (nint)value);
4761
if (((WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(_window,
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE))
10721
int styleFlags = (int)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE);
10722
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE, value ? styleFlags | flag : styleFlags & ~flag);
11150
if (((WINDOW_STYLE)PInvokeCore.GetWindowLong(lastParentHandle,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE))
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (4)
1128
WINDOW_LONG_PTR_INDEX
.GWL_STYLE,
1129
PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE));
1506
WINDOW_EX_STYLE style = (WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(handle,
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE);
1509
PInvokeCore.SetWindowLong(handle,
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE, (nint)style);
System\Windows\Forms\Controls\ListView\ListView.cs (3)
639
int currentStyle = (int)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE);
4555
int style = (int)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE);
4557
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE, style);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
364
&& ((WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(_editTextBox,
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE)).HasFlag(WINDOW_EX_STYLE.WS_EX_RTLREADING);
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\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (2)
322
if ((
WINDOW_LONG_PTR_INDEX
)(int)m.WParamInternal ==
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE)
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\Controls\TreeView\TreeView.cs (5)
315
int currentStyle = unchecked((int)((long)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE)));
1869
int style = (int)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE);
1871
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE, style);
1876
int style = (int)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE);
1878
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE, style);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (3)
227
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC,
243
nint currentSubClass = PInvokeCore.GetWindowLong(ownerHwnd.Handle,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC);
246
PInvokeCore.SetWindowLong(ownerHwnd.Handle,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC, _priorWindowProcedure);
System\Windows\Forms\Form.cs (9)
1595
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE, cp.ExStyle);
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\Internal\Win32WindowExtensions.cs (1)
12
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE);
System\Windows\Forms\NativeWindow.cs (13)
284
PInvokeCore.SetWindowLong(handle,
WINDOW_LONG_PTR_INDEX
.GWL_ID, id);
303
_priorWindowProcHandle = (void*)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC);
311
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC, _windowProc);
312
_windowProcHandle = (void*)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC);
318
&& ((WINDOW_STYLE)(uint)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE)).HasFlag(WINDOW_STYLE.WS_CHILD)
319
&& PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_ID) == 0)
321
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_ID, hwnd);
617
PInvokeCore.SetWindowLong(handle,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC, DefaultWindowProc);
841
void* currentWindowProc = (void*)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC);
849
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC, (nint)_priorWindowProcHandle);
860
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC, DefaultWindowProc);
867
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC, PreviousWindow._windowProc!);
886
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC, DefaultWindowProc);
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
47
PInvokeCore.SetWindowLong(hwnd,
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC, _defaultWindProc);
System\Windows\Forms\ToolTip\ToolTip.cs (2)
726
int style = unchecked((int)((long)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE)));
728
PInvokeCore.SetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE, style);
System\Windows\Forms\WindowSubclassHandler.cs (3)
99
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC,
185
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC);
205
WINDOW_LONG_PTR_INDEX
.GWL_WNDPROC,
System.Windows.Forms.Design (7)
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 (3)
118
WINDOW_LONG_PTR_INDEX
.GWL_HWNDPARENT);
203
hWndDescendant = (HWND)PInvokeCore.GetWindowLong(hWndDescendant,
WINDOW_LONG_PTR_INDEX
.GWL_HWNDPARENT);
220
int style = (int)PInvokeCore.GetWindowLong(this,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Automation\UiaTextProvider.cs (2)
76
(WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(hWnd,
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE);
79
(WINDOW_STYLE)PInvokeCore.GetWindowLong(hWnd,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE);
System.Windows.Forms.Tests (4)
System\Windows\Forms\FormTests.cs (3)
206
WINDOW_EX_STYLE extendedStyle = (WINDOW_EX_STYLE)PInvokeCore.GetWindowLong(form,
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE);
1094
WINDOW_EX_STYLE extendedStyle = unchecked((WINDOW_EX_STYLE)(long)PInvokeCore.GetWindowLong(form,
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE));
1100
extendedStyle = unchecked((WINDOW_EX_STYLE)(long)PInvokeCore.GetWindowLong(form,
WINDOW_LONG_PTR_INDEX
.GWL_EXSTYLE));
TextBoxBaseTests.cs (1)
2406
WINDOW_STYLE style = (WINDOW_STYLE)PInvokeCore.GetWindowLong(control,
WINDOW_LONG_PTR_INDEX
.GWL_STYLE);