win32gui.GetDC

HDC = GetDC(hwnd)

Gets the device context for the window.

Parameters

hwnd : int

The handle to the window