Partager via


COleServerDoc::OnSetHostNames

Called by the framework when the container sets or changes the host names for this document.

virtual void OnSetHostNames(
   LPCTSTR lpszHost,
   LPCTSTR lpszHostObj 
);

Parameters

  • lpszHost
    Pointer to a string that specifies the name of the container application.

  • lpszHostObj
    Pointer to a string that specifies the container's name for the document.

Remarks

The default implementation changes the document title for all views referring to this document.

Override this function if your application sets the titles through a different mechanism.

Requirements

Header: afxole.h

See Also

Reference

COleServerDoc Class

Hierarchy Chart

COleClientItem::SetHostNames

Other Resources

COleServerDoc Members