User32RedrawWindow(SafeHandle, NativeRectangle, 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(
SafeHandle hWnd,
in NativeRectangle refRectUpdate,
IntPtr refRegionUpdate,
RedrawWindowFlags flags
)
<DllImportAttribute("User32.dll">]
Public Shared Function RedrawWindow (
hWnd As SafeHandle,
ByRef refRectUpdate As NativeRectangle,
refRegionUpdate As IntPtr,
flags As RedrawWindowFlags
) As Boolean
Dim hWnd As SafeHandle
Dim refRectUpdate As NativeRectangle
Dim refRegionUpdate As IntPtr
Dim flags As RedrawWindowFlags
Dim returnValue As Boolean
returnValue = User32.RedrawWindow(hWnd,
refRectUpdate, refRegionUpdate,
flags)
public:
[DllImportAttribute(L"User32.dll")]
static bool RedrawWindow(
SafeHandle^ hWnd,
[InAttribute] NativeRectangle% refRectUpdate,
IntPtr refRegionUpdate,
RedrawWindowFlags flags
)
[<DllImportAttribute("User32.dll")>]
static member RedrawWindow :
hWnd : SafeHandle *
refRectUpdate : NativeRectangle byref *
refRegionUpdate : IntPtr *
flags : RedrawWindowFlags -> bool
No code example is currently available or this language may not be supported.
- hWnd SafeHandle
-
A handle to the window to be redrawn.
If this parameter is Zero, the desktop window is updated.
- refRectUpdate NativeRectangle
-
A pointer to a NativeRectangle 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)
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.