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