Freigeben über


CDocItem::GetDocument

Call this function to get the document that contains the item.

CDocument* GetDocument( ) const;

Return Value

A pointer to the document that contains the item; NULL, if the item is not part of a document.

Remarks

This function is overridden in the derived classes COleClientItem and COleServerItem, returning a pointer to either a COleDocument, a COleLinkingDoc, or a COleServerDoc object.

Requirements

Header: afxole.h

See Also

Concepts

CDocItem Class

CDocItem Members

Hierarchy Chart

COleDocument Class

COleLinkingDoc Class

COleServerDoc Class

COleClientItem Class

COleServerItem Class