GetWindowOrgEx

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

This function retrieves the x- and y-coordinates of the window origin for the given device context.

Parameters

hdc

Identifies the device context.

lpPoint

Points to a POINT structure that receives the coordinates of the window origin. (These coordinates are expressed in page units.) 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, SetWindowOrgEx