win32gui.GetViewportExtEx

(int,int) = GetViewportExtEx(hdc)

Retrieves the viewport extents for a DC

Parameters

hdc : PyHANDLE

Handle to a device context

Return Value

Returns the extents as (x,y) in logical units