COleControl::OnGetNaturalExtent

This method is called by the framework in response to a container's IViewObjectEx::GetNaturalExtent request. Override this method to return the object's display size closest to the proposed size and extent mode in the DVEXTENTINFO structure. The default implementation returns FALSE and makes no adjustments to the size.

At a Glance

Header file: Afxctl.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual BOOL OnGetNaturalExtent( DWORD dwAspect,
LONG
lindex, DVTARGETDEVICE* ptd, HDC hicTargetDev,
DVEXTENTINFO*
pExtentInfo, LPSIZEL psizel );

See Also

COleControl::OnGetViewExtent, DVTARGETDEVICE, DVEXTENTINFO