BeginBufferedPaint
[DllImport("uxtheme.dll", SetLastError = true)]
public static extern IntPtr BeginBufferedPaint(
HDC hdcTarget,
ref RECT prcTarget,
BP_BUFFERFORMAT dwFormat,
ref BP_PAINTPARAMS pPaintParams,
out IntPtr phdc
);
Microsoft documentation: Link
Last updated