CDocument::SetPathName

Call this member function to specify the fully qualified path to the document's disk file. Depending on the value of bAddToMRU the path is added, or not added, to the MRU list maintained by the application. Note that some documents are not associated with a disk file. Call this member function only if you are overriding the default implementation for opening and saving files used by the framework.

Syntax

virtual void SetPathName( LPCTSTR lpszPathName, BOOL bAddToMRU = TRUE );

At a Glance

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

See Also

CDocument Overview, CDocument Member Functions, Application Architecture Classes, CDocument::GetPathName, CWinApp::AddToRecentFileList