This method retrieves the name of a specified file. For example, when you call GetFileName to generate a message to the user about the file C:\Windows\Write\Myfile.wri, the file name, Myfile.wri, is returned. To return the entire path of the file, including the name, call GetFilePath. To return the title of the file (in this example, myfile), call GetFileTitle.
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Header file: | Afx.h |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
virtual CString GetFileName( ) const;
CFile::GetFilePath, CFile::GetFileTitle