win32gui.CreateCompatibleDC

HDC = CreateCompatibleDC(dc)

Creates a memory device context (DC) compatible with the specified device.

Parameters

dc : int

handle to DC