CDocument::SetPathName

This method specifies 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. Some documents are not associated with a disk file. Call this method only if you are overriding the default implementation for opening and saving files used by the framework.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

See Also

CDocument::GetPathName, CWinApp::AddToRecentFileList