InvalidateRgn function user32

bool InvalidateRgn(
  1. HWND hWnd,
  2. HRGN? hRgn,
  3. bool bErase
)

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;