Export (0) Print
Expand All


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.


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

© 2014 Microsoft