Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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(
  _In_   HDC     hdc,
  _Out_  LPPOINT lpPoint
);

Parameters

hdc [in]

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

lpPoint [out]

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]

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Device Contexts Overview
Device Context Functions
CreateIC
POINT

 

 

Community Additions

ADD
Show:
© 2015 Microsoft