Поделиться через


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 
);

Параметры

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

Возвращаемое значение

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

Заметки

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.

Требования

Header: afxole.h

См. также

Основные понятия

COleLinkingDoc Class

COleLinkingDoc Members

Hierarchy Chart

COleServerItem::GetItemName

COleServerItem::SetItemName

COleLinkingDoc::OnFindEmbeddedItem