User32EndPaint(SafeHandle, PaintStruct) Method

Marks the end of painting in the specified window.

This function is required for each call to the BeginPaint(IntPtr, PaintStruct) function, but only after painting is complete.

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", CharSet = CharSet.Auto)]
public static bool EndPaint(
	SafeHandle hWnd,
	ref PaintStruct refPaint
)

Parameters

hWnd  SafeHandle
A handle to the window that has been repainted.
refPaint  PaintStruct
Pointer to the PaintStruct structure that contains the painting information retrieved by BeginPaint(IntPtr, PaintStruct) function.

Return Value

Boolean
If the function succeeds, the return value is the handle to a display device context for the specified window.

If the function fails, the return value is Zero, indicating that no display device context is available.

Remarks

See Also