COleLinkingDoc::OnGetLinkedItem

Called by the framework to check whether the document contains a linked server item with the specified name.

virtual COleServerItem* OnGetLinkedItem(
   LPCTSTR lpszItemName 
);

Parameters

  • lpszItemName
    Pointer to the name of the linked OLE item requested.

Return Value

A pointer to the specified item; NULL if the item is not found.

Remarks

The default COleLinkingDoc implementation always returns NULL. This function is overriden in the derived class COleServerDoc to search the list of OLE server items for a linked item with the specified name (the name comparison is case sensitive). Override this function if you have implemented your own method of storing or retrieving linked server items.

Requirements

Header: afxole.h

See Also

Concepts

COleLinkingDoc Class

COleLinkingDoc Members

Hierarchy Chart

COleServerItem::GetItemName

COleServerItem::SetItemName

COleLinkingDoc::OnFindEmbeddedItem