22 references to ReleaseDC
System.Windows.Forms (22)
misc\DpiHelper.cs (1)
113
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, hDC));
winforms\Managed\System\WinForms\AxHost.cs (1)
1458
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, hDC));
winforms\Managed\System\WinForms\Control.cs (2)
13801
UnsafeNativeMethods.
ReleaseDC
(new HandleRef(this, Handle), new HandleRef(null, dc));
16512
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, dc));
winforms\Managed\System\WinForms\ControlPaint.cs (4)
310
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, hdcS));
1812
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, dc));
1841
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, dc));
2019
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, dc));
winforms\Managed\System\WinForms\DataGrid.cs (1)
5863
UnsafeNativeMethods.
ReleaseDC
(new HandleRef(this, parentHandle), new HandleRef(this, dc));
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
5778
UnsafeNativeMethods.
ReleaseDC
(new HandleRef(this, parentHandle), new HandleRef(this, dc));
5794
UnsafeNativeMethods.
ReleaseDC
(new HandleRef(this, parentHandle), new HandleRef(this, dc));
winforms\Managed\System\WinForms\DataObject.cs (1)
170
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, hDC));
winforms\Managed\System\WinForms\FontDialog.cs (2)
573
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, screenDC));
708
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, screenDC));
winforms\Managed\System\WinForms\MenuItem.cs (1)
1534
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, screendc));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
3899
UnsafeNativeMethods.
ReleaseDC
(new HandleRef(DropDownListBox, DropDownListBox.Handle), new HandleRef(DropDownListBox, hdc));
winforms\Managed\System\WinForms\RichTextBox.cs (1)
2956
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, hDC));
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1642
UnsafeNativeMethods.
ReleaseDC
(new HandleRef(this, parentHandle), new HandleRef(null, dc));
winforms\Managed\System\WinForms\Splitter.cs (1)
779
UnsafeNativeMethods.
ReleaseDC
(new HandleRef(ParentInternal, parentHandle), new HandleRef(null, dc));
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
887
UnsafeNativeMethods.
ReleaseDC
(new HandleRef(this, this.Handle),hdc);
winforms\Managed\System\WinForms\WebBrowserHelper.cs (2)
120
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, hDC));
138
UnsafeNativeMethods.
ReleaseDC
(NativeMethods.NullHandleRef, new HandleRef(null, hDC));