User32RedrawWindow(IntPtr, Rectangle, 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(
	IntPtr hWnd,
	in Rectangle refRectUpdate,
	IntPtr refRegionUpdate,
	RedrawWindowFlags flags
)

Parameters

hWnd  IntPtr
A handle to the window to be redrawn.

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

refRectUpdate  Rectangle
A pointer to a Rectangle structure containing the coordinates, in device units, of the update rectangle.

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

refRegionUpdate  IntPtr
A handle to the update region.

If both the refRegionUpdate and refRectUpdate 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