29 references to SetWindowLong
System.Private.Windows.Core (2)
Windows\Win32\PInvokeCore.SetWindowLong.cs (2)
30
nint result =
SetWindowLong
(hWnd, nIndex, (nint)newValue.Handle);
39
IntPtr result =
SetWindowLong
(hWnd, nIndex, pointer);
System.Windows.Forms (25)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1265
PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, currentWndproc);
System\Windows\Forms\Control.cs (3)
3636
set => PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, (nint)value);
3645
set => PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, (nint)value);
10722
PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, value ? styleFlags | flag : styleFlags & ~flag);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (2)
1126
PInvokeCore.
SetWindowLong
(
1509
PInvokeCore.
SetWindowLong
(handle, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, (nint)style);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4557
PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style);
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1871
PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style);
1878
PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (2)
225
_priorWindowProcedure = PInvokeCore.
SetWindowLong
(
246
PInvokeCore.
SetWindowLong
(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, _priorWindowProcedure);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (2)
549
PInvokeCore.
SetWindowLong
((HWND)hWnd, 0, -1);
556
PInvokeCore.
SetWindowLong
((HWND)hWnd, 0, -1);
System\Windows\Forms\Form.cs (1)
1595
PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, cp.ExStyle);
System\Windows\Forms\Form.EnumThreadWindowsCallback.cs (2)
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\NativeWindow.cs (5)
284
PInvokeCore.
SetWindowLong
(handle, WINDOW_LONG_PTR_INDEX.GWL_ID, id);
617
PInvokeCore.
SetWindowLong
(handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, DefaultWindowProc);
849
PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, (nint)_priorWindowProcHandle);
860
PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, DefaultWindowProc);
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 (1)
728
PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style);
System\Windows\Forms\WindowSubclassHandler.cs (2)
97
_originalWindowProc = (void*)PInvokeCore.
SetWindowLong
(
203
if (PInvokeCore.
SetWindowLong
(
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (2)
141
PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, parent.Handle);
157
PInvokeCore.
SetWindowLong
(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, IntPtr.Zero);