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.
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", CharSet = CharSet.Auto)]
public static bool EndPaint(
SafeHandle hWnd,
ref PaintStruct refPaint
)
<DllImportAttribute("User32.dll", CharSet := CharSet.Auto>]
Public Shared Function EndPaint (
hWnd As SafeHandle,
ByRef refPaint As PaintStruct
) As Boolean
Dim hWnd As SafeHandle
Dim refPaint As PaintStruct
Dim returnValue As Boolean
returnValue = User32.EndPaint(hWnd,
refPaint)
public:
[DllImportAttribute(L"User32.dll", CharSet = CharSet::Auto)]
static bool EndPaint(
SafeHandle^ hWnd,
PaintStruct% refPaint
)
[<DllImportAttribute("User32.dll", CharSet = CharSet.Auto)>]
static member EndPaint :
hWnd : SafeHandle *
refPaint : PaintStruct byref -> bool
No code example is currently available or this language may not be supported.
- 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.
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.