共用方式為


IOleObjectImpl::GetClientSite

Puts the pointer in the control class data member CComControlBase::m_spClientSite into ppClientSite and increments the reference count on the pointer.

STDMETHOD(GetClientSite)( 
   IOleClientSite** ppClientSite  
);

Remarks

See IOleObject::GetClientSite in the Windows SDK.

Requirements

Header: atlctl.h

See Also

Reference

IOleObjectImpl Class

IOleObjectImpl::SetClientSite