CDocTemplate::OpenDocumentFile

Call this member function to open 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.

Syntax

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

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CDocTemplate Overview, CDocTemplate Member Functions, Application Architecture Classes, CDocTemplate::CloseAllDocuments