Share via


CDocTemplate::OpenDocumentFile

virtual CDocument* OpenDocumentFile( LPCTSTR lpszPathName**, BOOL** bMakeVisible = TRUE ) = 0;

Return Value

A pointer to the document whose file is named by lpszPathName; NULL if unsuccessful.

Parameters

lpszPathName

Pointer to the pathname of the file containing the document to be opened.

bMakeVisible

Determines whether the window containing the document is to be made visible.

Remarks

Opens the file whose pathname is specified by lpzsPathName. If lpszPathName is NULL, a new file, containing a document of the type associated with this template, is created.

CDocTemplate OverviewClass MembersHierarchy Chart

See Also   CDocTemplate::CloseAllDocuments