InvalidateRgn function user32
Invalidates the client area within the specified region by adding it to the current update region of a window.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-invalidatergn.
Implementation
@pragma('vm:prefer-inline')
bool InvalidateRgn(HWND hWnd, HRGN? hRgn, bool bErase) =>
_InvalidateRgn(hWnd, hRgn ?? nullptr, bErase ? TRUE : FALSE) != FALSE;