User32RedrawWindow(IntPtr, IntPtr, IntPtr, RedrawWindowFlags) Method
Updates the specified rectangle or region in a window's client area.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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,
IntPtr lprcUpdate,
IntPtr hrgnUpdate,
RedrawWindowFlags flags
)
<DllImportAttribute("User32.dll">]
Public Shared Function RedrawWindow (
hWnd As IntPtr,
lprcUpdate As IntPtr,
hrgnUpdate As IntPtr,
flags As RedrawWindowFlags
) As Boolean
Dim hWnd As IntPtr
Dim lprcUpdate As IntPtr
Dim hrgnUpdate As IntPtr
Dim flags As RedrawWindowFlags
Dim returnValue As Boolean
returnValue = User32.RedrawWindow(hWnd,
lprcUpdate, hrgnUpdate, flags)
public:
[DllImportAttribute(L"User32.dll")]
static bool RedrawWindow(
IntPtr hWnd,
IntPtr lprcUpdate,
IntPtr hrgnUpdate,
RedrawWindowFlags flags
)
[<DllImportAttribute("User32.dll")>]
static member RedrawWindow :
hWnd : IntPtr *
lprcUpdate : IntPtr *
hrgnUpdate : IntPtr *
flags : RedrawWindowFlags -> bool
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
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)
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.