CFile::GetFileTitle

This method retrieves the file title for a 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. The file title typically does not include the extension.

At a Glance

Header file: Afx.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 CString GetFileTitle( ) const;

See Also

CFile::GetFileName, CFile::GetFilePath