GetWindowExtEx

  BOOL GetWindowExtEx(hdc, lpSize)    
  HDC hdc; /* handle of device context */
  LPSIZE lpSize; /* address of structure receiving window extents */

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

Parameters

hdc

Identifies the device context.

lpSize

Points to a SIZE structure. The x- and y-extents (in page-space 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

SetWindowExtEx, SIZE