User32BeginPaint(SafeHandle, PaintStruct) Method
Prepares the specified window for painting
and fills a
PaintStruct structure with information about the painting.
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 IntPtr BeginPaint(
SafeHandle hWnd,
out PaintStruct refPaint
)
<DllImportAttribute("User32.dll", CharSet := CharSet.Auto>]
Public Shared Function BeginPaint (
hWnd As SafeHandle,
<OutAttribute> ByRef refPaint As PaintStruct
) As IntPtr
Dim hWnd As SafeHandle
Dim refPaint As PaintStruct
Dim returnValue As IntPtr
returnValue = User32.BeginPaint(hWnd,
refPaint)
public:
[DllImportAttribute(L"User32.dll", CharSet = CharSet::Auto)]
static IntPtr BeginPaint(
SafeHandle^ hWnd,
[InAttribute] [OutAttribute] PaintStruct% refPaint
)
[<DllImportAttribute("User32.dll", CharSet = CharSet.Auto)>]
static member BeginPaint :
hWnd : SafeHandle *
refPaint : PaintStruct byref -> IntPtr
No code example is currently available or this language may not be supported.
- hWnd SafeHandle
-
A handle to the window to be repainted.
- refPaint PaintStruct
-
Pointer to the PaintStruct structure that will receive painting information.
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.