30 references to SetWindowLong
System.Windows.Forms (30)
winforms\Managed\System\WinForms\AxHost.cs (1)
1626
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, handle), NativeMethods.GWL_WNDPROC, new HandleRef(this, currentWndproc));
winforms\Managed\System\WinForms\CommonDialog.cs (1)
321
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, hwndOwner), NativeMethods.GWL_WNDPROC, new HandleRef(this, defOwnerWndProc));
winforms\Managed\System\WinForms\Control.cs (3)
4475
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_EXSTYLE, new HandleRef(null, (IntPtr)value));
4488
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE, new HandleRef(null, (IntPtr)value));
12419
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE, new HandleRef(null, (IntPtr)(value? styleFlags | flag: styleFlags & ~flag)));
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
1641
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, handle), NativeMethods.GWL_EXSTYLE, new HandleRef(this, (IntPtr)style));
winforms\Managed\System\WinForms\FileDialog.cs (2)
801
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(null, hWnd), 0, new HandleRef(null, NativeMethods.InvalidIntPtr));
806
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(null, hWnd), 0, new HandleRef(null, NativeMethods.InvalidIntPtr));
winforms\Managed\System\WinForms\Form.cs (7)
2107
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_EXSTYLE, new HandleRef(null, (IntPtr)cp.ExStyle));
3696
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_HWNDPARENT, TaskbarOwner);
6114
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_HWNDPARENT, new HandleRef(owner, hWndOwner));
6215
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_HWNDPARENT, new HandleRef(owner, hWndOwner));
6442
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_HWNDPARENT, ownerHwnd);
7776
UnsafeNativeMethods.
SetWindowLong
(hRef, NativeMethods.GWL_HWNDPARENT, NativeMethods.NullHandleRef);
7788
UnsafeNativeMethods.
SetWindowLong
(hRef, NativeMethods.GWL_HWNDPARENT, hRefOwner);
winforms\Managed\System\WinForms\ListView.cs (1)
4283
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE, new HandleRef(null, (IntPtr)style));
winforms\Managed\System\WinForms\NativeWindow.cs (7)
455
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(wrapper, handle), NativeMethods.GWL_ID, new HandleRef(wrapper, (IntPtr)globalID));
634
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, handle), NativeMethods.GWL_ID, new HandleRef(this, handle));
1086
UnsafeNativeMethods.
SetWindowLong
(href, NativeMethods.GWL_WNDPROC, new HandleRef(null, userDefWindowProc));
1377
UnsafeNativeMethods.
SetWindowLong
(href, NativeMethods.GWL_WNDPROC, new HandleRef(this, defWindowProc));
1391
UnsafeNativeMethods.
SetWindowLong
(href, NativeMethods.GWL_WNDPROC, new HandleRef(this, userDefWindowProc));
1417
UnsafeNativeMethods.
SetWindowLong
(href, NativeMethods.GWL_WNDPROC, new HandleRef(this, userDefWindowProc));
1492
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(null, hWnd), NativeMethods.GWL_WNDPROC, new HandleRef(this, defWindowProc));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
1691
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(dropDownHolder, dropDownHolder.Handle), NativeMethods.GWL_HWNDPARENT, new HandleRef(this, Handle));
1735
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(dropDownHolder, dropDownHolder.Handle), NativeMethods.GWL_HWNDPARENT, new HandleRef(this, Handle));
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1672
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_HWNDPARENT, ToolStripManager.ModalMenuFilter.ActiveHwnd);
1680
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_HWNDPARENT, ownerHandle);
winforms\Managed\System\WinForms\ToolTip.cs (1)
900
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE, new HandleRef(null, (IntPtr)style));
winforms\Managed\System\WinForms\TreeView.cs (2)
1994
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE, new HandleRef(null, (IntPtr)style));
2000
UnsafeNativeMethods.
SetWindowLong
(new HandleRef(this, Handle), NativeMethods.GWL_STYLE, new HandleRef(null, (IntPtr)style));