virtual CString GetFileName( ) const;
Return Value
The name of the file.
Remarks
Call this member function to retrieve 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 filename, myfile.wri
, is returned.
To return the entire path of the file, including the name, call GetFilePath. To return the title of the file (myfile
), call GetFileTitle.
CFile Overview | Class Members | Hierarchy Chart
See Also CFile::GetFilePath, CFile::GetFileTitle