GetDCOrgEx function

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(
  HDC     hdc,
  LPPOINT lppt
);

Parameters

hdc

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

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

   
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