2 writes to HDC
System.Private.Windows.Core (2)
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (2)
34HDC = PInvokeCore.CreateCompatibleDC(hdc); 46HDC = informationOnly
11 references to HDC
System.Private.Windows.Core (7)
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (7)
52public static implicit operator HDC(in CreateDcScope scope) => scope.HDC; 53public static unsafe implicit operator HGDIOBJ(in CreateDcScope scope) => (HGDIOBJ)(scope.HDC.Value); 54public static implicit operator nint(in CreateDcScope scope) => scope.HDC; 55public static explicit operator WPARAM(in CreateDcScope scope) => (WPARAM)(nuint)(nint)scope.HDC; 57public bool IsNull => HDC.IsNull; 61if (!HDC.IsNull) 63PInvokeCore.DeleteDC(HDC);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1713compatibleDC.HDC.FillRectangle(new Rectangle(0, 0, rectangle.Width, rectangle.Height), brush);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\DeviceContextExtensions.cs (1)
124internal static Graphics CreateGraphics(this CreateDcScope hdc) => Graphics.FromHdcInternal(hdc.HDC);
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
80Assert.Equal(dcScope.HDC, (HDC)hdc);
System.Windows.Forms.Tests (1)
System\Windows\Forms\TextRendererTests.cs (1)
755using (Metafile metafileRecorder = new(stream, hdc.HDC, EmfType.EmfOnly))