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