共用方式為


CDC::GetWindowExt

Retrieves the x- and y-extents of the window associated with the device context.

CSize GetWindowExt( ) const;

Return Value

The x- and y-extents (in logical units) as a CSize object.

Requirements

Header: afxwin.h

See Also

Concepts

CDC Class

CDC Members

Hierarchy Chart

CDC::SetWindowExt

CSize Class

CDC::GetViewportExt