共用方式為


IOleObjectImpl::SetClientSite

Tells the control about its client site in the container.

STDMETHOD(SetClientSite)( 
   IOleClientSite* pClientSite  
);

Remarks

The method then returns S_OK.

See IOleObject::SetClientSite in the Windows SDK.

Requirements

Header: atlctl.h

See Also

Reference

IOleObjectImpl Class

IOleObjectImpl::GetClientSite