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. |
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.