GetDCOrgEx function (wingdi.h)

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

Syntax

BOOL GetDCOrgEx(
  [in]  HDC     hdc,
  [out] LPPOINT lppt
);

Parameters

[in] hdc

A handle to the DC whose final translation origin is to be retrieved.

[out] lppt

A pointer to a POINT structure that receives the final translation origin, in device coordinates.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

The final translation origin is relative to the physical origin of the screen.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

CreateIC

Device Context Functions

Device Contexts Overview

POINT