GetViewportExtEx

  BOOL GetViewportExtEx(hdc, lpSize)    
  HDC hdc; /* handle of device context */
  LPSIZE lpSize; /* address of structure receiving viewport dimensions */

The GetViewportExtEx function retrieves the x- and y-extents of the current viewport for the given device-context.

Parameters

hdc

Identifies the device context.

lpSize

Points to a SIZE structure. The x- and y-extents (in device units) are placed in this structure. The SIZE structure has the following format:

typedef struct tagSIZE { /* siz */

LONG cx;

LONG cy;

} SIZE;

Return Value

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

See Also

SIZE