2 writes to HDC
System.Private.Windows.Core (2)
Windows\Win32\Graphics\Gdi\GetDcScope.cs (2)
25
HDC
= PInvokeCore.GetDC(hwnd);
43
HDC
= PInvokeCore.GetDCEx(hwnd, hrgnClip, flags);
10 references to HDC
System.Private.Windows.Core (5)
Windows\Win32\Graphics\Gdi\GetDcScope.cs (5)
57
public bool IsNull =>
HDC
.IsNull;
59
public static implicit operator nint(in GetDcScope scope) => scope.
HDC
;
60
public static implicit operator HDC(in GetDcScope scope) => scope.
HDC
;
64
if (!
HDC
.IsNull)
66
PInvokeCore.ReleaseDC(HWND,
HDC
);
System.Private.Windows.GdiPlus (1)
Windows\Win32\Graphics\Gdi\HdcExtensions.cs (1)
14
HalftonePalette(hdc.
HDC
, forceBackground, realizePalette);
System.Windows.Forms (2)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
385
return PInvoke.GetTextExtentPoint32W(hdc.
HDC
, &item, 1, (SIZE*)psizle);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3722
PInvoke.GetTextExtentPoint32W(hdc.
HDC
, value, value.Length, textSize);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\DeviceContextExtensions.cs (2)
125
internal static Graphics CreateGraphics(this GetDcScope hdc) => Graphics.FromHdcInternal(hdc.
HDC
);
150
FillRectangle(hdc.
HDC
, hbrush, rectangle);