BeginPaint function user32

HDC BeginPaint(
  1. HWND hWnd,
  2. Pointer<PAINTSTRUCT> lpPaint
)

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

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-beginpaint.

Implementation

@pragma('vm:prefer-inline')
HDC BeginPaint(HWND hWnd, Pointer<PAINTSTRUCT> lpPaint) =>
    HDC(_BeginPaint(hWnd, lpPaint));