CDocObjectServer::CDocObjectServer

CDocObjectServer(COleServerDoc* pOwner,LPOLEDOCUMENTSITE pDocSize= NULL);

参数:
pOwner客户文档的指针。以DocObject为服务器。
pDocSize由包容器实现的IOleDocument接口的指针。

说明:
构造并初始化一个CDocObjectServer对象。
当DocObject活动时,客户OLE接口(IOleDocumentSite)允许DocObject服务器与其客户(包容器)通信。
DocObject服务器被激活时,它首先检测包容器是否实现了IOleDocumentSite接口。如果是,调用COleServerDoc::GetDocObjectServer来观察包容器是否支持DocObjects。缺省地,GetDocObjectServer 返回空。必须覆盖ColeServer-Doc::GetDocObjectServer来构造新的CDocObjectServer对象或者从已有对象中派生。COleServerDoc 包容器的指针和IOleDocument Site接口作为参数传递给构造程序。

请参阅:
CDocObjectServerItem, COleServerDoc::GetDocObjectServer