User32InvalidateRgn(SafeHandle, SafeHandle, Boolean) Method

Invalidates the client area within the specified region by adding it to the current update region of a window.

The invalidated region, along with all other areas in the update region, is marked for painting when the next WM_Paint message occurs.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static bool InvalidateRgn(
	SafeHandle hWnd,
	SafeHandle hRgn,
	bool erase
)

Parameters

hWnd  SafeHandle
A handle to the window with an update region that is to be modified.
hRgn  SafeHandle
A handle to the region to be added to the update region.

The region is assumed to have client coordinates.

If this parameter is Zero, the entire client area is added to the update region.

erase  Boolean

[Missing <param name="erase"/> documentation for "M:DevCase.Win32.NativeMethods.User32.InvalidateRgn(System.Runtime.InteropServices.SafeHandle,System.Runtime.InteropServices.SafeHandle,System.Boolean)"]

Return Value

Boolean
The return value is always .

To get extended error information, call GetLastWin32Error.

Remarks

See Also