The GetDCOrgEx function retrieves the final translation origin for a specified device context (DC). The final translation origin specifies an offset that the system uses to translate device coordinates into client coordinates (for coordinates in an application's window).
BOOL GetDCOrgEx( HDC hdc, LPPOINT lppt );
A handle to the DC whose final translation origin is to be retrieved.
A pointer to a POINT structure that receives the final translation origin, in device coordinates.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
The final translation origin is relative to the physical origin of the screen.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||wingdi.h (include Windows.h)|