22 references to GetDcScope
System.Drawing.Common.Tests (3)
System\Drawing\GraphicsTests.cs (3)
83using var hdc = GetDcScope.ScreenDC; 92using var hdc = GetDcScope.ScreenDC; 101using var hdc = GetDcScope.ScreenDC;
System.Private.Windows.Core (3)
Windows\Win32\Graphics\Gdi\GetDcScope.cs (3)
55public static GetDcScope ScreenDC => new(HWND.Null); 59public static implicit operator nint(in GetDcScope scope) => scope.HDC; 60public static implicit operator HDC(in GetDcScope scope) => scope.HDC;
System.Windows.Forms (8)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1077using var dc = GetDcScope.ScreenDC;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
282using var dc = GetDcScope.ScreenDC;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2778using var dc = GetDcScope.ScreenDC;
System\Windows\Forms\Controls\WebBrowser\WebBrowserHelper.cs (2)
68using var dc = GetDcScope.ScreenDC; 83using var dc = GetDcScope.ScreenDC;
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (2)
382using var dc = GetDcScope.ScreenDC; 465using var dc = GetDcScope.ScreenDC;
System\Windows\Forms\OLE\DataObject.Composition.WinFormsToNativeAdapter.cs (1)
151using var screenDC = GetDcScope.ScreenDC;
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
180using var hdc = GetDcScope.ScreenDC;
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
885using var dc = GetDcScope.ScreenDC;
System\Windows\Forms\Internals\ScaleHelper.cs (1)
66using var dc = GetDcScope.ScreenDC;
System.Windows.Forms.Primitives.Tests (4)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (4)
93using var hdc = GetDcScope.ScreenDC; 216using var hdc = GetDcScope.ScreenDC; 288using var hdc = GetDcScope.ScreenDC; 321using var hdc = GetDcScope.ScreenDC;
System.Windows.Forms.Primitives.TestUtilities (1)
GdiHelper.cs (1)
13using var dc = GetDcScope.ScreenDC;