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