User32RedrawWindow(SafeHandle, IntPtr, IntPtr, RedrawWindowFlags) Method

Updates the specified rectangle or region in a window's client area.

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")]
public static bool RedrawWindow(
	SafeHandle hWnd,
	IntPtr lprcUpdate,
	IntPtr hrgnUpdate,
	RedrawWindowFlags flags
)

Parameters

hWnd  SafeHandle
A handle to the window to be redrawn.

If this parameter is Zero, the desktop window is updated.

lprcUpdate  IntPtr
A pointer to a NativeRectangle structure containing the coordinates, in device units, of the update rectangle.

This parameter is ignored if the hrgnUpdate parameter identifies a region.

hrgnUpdate  IntPtr
A handle to the update region.

If both the hrgnUpdate and lprcUpdate parameters are Zero, the entire client area is added to the update region.

flags  RedrawWindowFlags
One or more redraw flags.

This parameter can be used to invalidate or validate a window, control repainting, and control which windows are affected by RedrawWindow(IntPtr, NativeRectangle, IntPtr, RedrawWindowFlags)

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also