GetDCOrg

Syntax

DWORD GetDCOrg(hDC)

This function obtains the final translation origin for the device context. The final trans-lation origin specifies the offset used by Windows to translate device coordinates into client coordinates for points in an application's window. The final translation origin is relative to the physical origin of the screen display.

Parameter Type/Description  

hDC HDC Identifies the device context whose origin is to be retrieved.  

Return Value

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