GetWindowExt

Syntax

DWORD GetWindowExt(hDC)

This function retrieves the x- and y-extents of the window associated with the specified device context.

Parameter Type/Description  

hDC HDC Identifies the device context.  

Return Value

The return value specifies the x- and y-extents (in logical units). The y-extent is in the high-order word; the x-extent is in the low-order word.