GetDCEx function user32

HDC GetDCEx(
  1. HWND? hWnd,
  2. HRGN? hrgnClip,
  3. GET_DCX_FLAGS flags
)

Retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen.

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

Implementation

@pragma('vm:prefer-inline')
HDC GetDCEx(HWND? hWnd, HRGN? hrgnClip, GET_DCX_FLAGS flags) =>
    HDC(_GetDCEx(hWnd ?? nullptr, hrgnClip ?? nullptr, flags));