Click or drag to resize

Win32WindowInvalidateRgn 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 bool InvalidateRgn(
	IntPtr regionHandle,
	bool erase
)

Parameters

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