GetDC function user32

int GetDC(
  1. int hWnd
)

The GetDC function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the DC. The device context is an opaque data structure, whose values are used internally by GDI.

HDC GetDC(
  HWND hWnd
);

Implementation

int GetDC(int hWnd) => _GetDC(hWnd);