User32BeginPaint(HandleRef, PaintStruct) Method

Prepares the specified window for painting and fills a PaintStruct structure with information about the painting.

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 IntPtr BeginPaint(
	HandleRef hWnd,
	out PaintStruct refPaint
)

Parameters

hWnd  HandleRef
A handle to the window to be repainted.
refPaint  PaintStruct
Pointer to the PaintStruct structure that will receive painting information.

Return Value

IntPtr
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