RedrawWindow

[DllImport("user32.dll", SetLastError = true)]
public static extern bool RedrawWindow(
   IntPtr hWnd,
   RECT lprcUpdate,
   IntPtr hrgnUpdate,
   uint flags
);

Microsoft documentation: Link

Last updated