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