GetViewportExt

Syntax

DWORD GetViewportExt(hDC)

This function retrieves the x- and y-extents of the device context's viewport.

Parameter Type/Description  

hDC HDC Identifies the device context.  

Return Value

The return value specifies the x- and y-extents (in device units). The y-extent is in the
high-order word; the x-extent is in the low-order word.