Windows.Win32.Graphics.Gdi.BeginPaintScope
struct BeginPaintScope
Helper to scope lifetime of an HDC retrieved via BeginPaint
namespace Windows.Win32.Graphics.Gdi
{
internal readonly ref struct BeginPaintScope
{
public HDC HDC { get; }
public HWND HWND { get; }
public Rectangle PaintRectangle { get; }
public BeginPaintScope(HWND hwnd);
public static implicit operator HDC(ref BeginPaintScope scope);
public void Dispose();
}
}