GetViewportOrg

Syntax

DWORD GetViewportOrg(hDC)

This function retrieves the x- and y-coordinates of the origin of the viewport associated with the specified device context.

Parameter Type/Description  

hDC HDC Identifies the device context.  

Return Value

The return value specifies the origin of the viewport (in device coordinates). The y-coordinate is in the high-order word; the x-coordinate is in the low-order word.