CGXDocument::GetPrimaryDocument
CGXDocument* GetPrimaryDocument() const;
Remarks
Returns the primary document for this CGXDocument instance. The primary document is the controlling document for this instance. This will be the document that interacts with the MFC framework for handling persistence calls etc.