Поделиться через


CDocTemplate::OpenDocumentFile

Opens a file specified by a pathname.

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

Параметры

  • 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.

Возвращаемое значение

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

Заметки

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

Требования

Header: afxwin.h

См. также

Основные понятия

CDocTemplate Class

CDocTemplate Members

Hierarchy Chart

CDocTemplate::CloseAllDocuments