Click or drag to resize

WindowsUtilitiesInvalidateRgn 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.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static bool InvalidateRgn(
	IntPtr handle,
	IntPtr regionHandle,
	bool erase
)

Parameters

handle
Type: SystemIntPtr
A handle to the window with an update region that is to be modified.
regionHandle
Type: SystemIntPtr
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
Type: SystemBoolean
Specifies whether the background within the update region should be erased when the update region is processed. If this parameter is true, the background is erased when the BeginPaint function is called. If the parameter is false, the background remains unchanged.

Return Value

Type: Boolean
true if the call succeeded, false otherwise.
See Also