共用方式為


IObjectWithSiteImpl::SetSite

Provides the object with the site's IUnknown pointer.

STDMETHOD(SetSite)( 
   IUnknown* pUnkSite  
);

Remarks

See IObjectWithSite::SetSite in the Windows SDK.

Requirements

Header: atlcom.h

See Also

Reference

IObjectWithSiteImpl Class

IObjectWithSiteImpl::GetSite