Compartir a través de


IViewObjectExImpl::GetNaturalExtent

Provides sizing hints from the container for the object to use as the user resizes it.

STDMETHOD(GetNaturalExtent)(
   DWORD dwAspect,
   LONG /* lindex */,
   DVTARGETDEVICE* /* ptd */,
   HDC /* hicTargetDevice */,
   DVEXTENTINFO* pExtentInfo,
   LPSIZEL psizel 
);

Remarks

If dwAspect is DVASPECT_CONTENT and pExtentInfo->dwExtentMode is DVEXTENT_CONTENT, sets *psizel to the control class's data member CComControlBase::m_sizeNatural. Otherwise, returns an error HRESULT.

See IViewObjectEx::GetNaturalExtent in the Windows SDK.

Requirements

Header: atlctl.h

See Also

Reference

IViewObjectExImpl Class

Other Resources

IViewObjectExImpl Members