GetViewportOrgEx

  BOOL GetViewportOrgEx(hdc, lpPoint)    
  HDC hdc; /* handle of device context */
  LPPOINT lpPoint; /* address of structure receiving the viewport origin */

The GetViewportOrgEx function retrieves the x- and y-coordinates of the viewport origin for the given device context.

Parameters

hdc

Identifies the device context.

lpPoint

Points to a POINT structure that receives the origin coordinates. The POINT structure has the following format:

typedef struct tagPOINT { /* pt */

LONG x;

LONG y;

} POINT;

Return Value

The return value is TRUE if the function is successful. Otherwise, it is FALSE.

See Also

POINT, SetViewportOrgEx