Retrieves the x- and y-extents of the window associated with the device context.
CSize GetWindowExt( ) const;
The x- and y-extents (in logical units) as a CSize object.
Header: afxwin.h