Export (0) Print
Expand All

CFile::GetFileTitle 

Call this member function to retrieve the file title for a specified file.


virtual CString GetFileTitle( ) const;

The title of the specified file.

For example, when you call GetFileTitle to generate a message to the user about the file c:\windows\write\myfile.wri, the file title (myfile) is returned.

NoteNote

In Windows 95/98, the file title typically does not include the extension. For a explanation of this, see GetFileTitle in the Platform SDK.

To return the entire path of the file, including the name, call GetFilePath. To return just the name of the file (myfile.wri), call GetFileName.

See the example for GetFileName.

Community Additions

ADD
Show:
© 2014 Microsoft