User32UpdateWindow(SafeHandle) Method

Updates the client area of the specified window by sending a WM_Paint message to the window if the window's update region is not empty.

The function sends a WM_Paint message directly to the window procedure of the specified window, bypassing the application queue. If the update region is empty, no message is sent.

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", SetLastError = true)]
public static bool UpdateWindow(
	SafeHandle hWnd
)

Parameters

hWnd  SafeHandle
A handle to the window to be updated.

Return Value

Boolean
If the function succeeds, the return value is a . If the function fails, the return value is .

To get extended error information, call GetLastWin32Error.

Remarks

See Also