CFileDialog::GetFileName

This method retrieves the name of the file entered in the dialog box. The name of the file includes only its prefix, without the path or the extension.

At a Glance

Header file: Afxdlgs.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

CString GetFileName( ) const;

See Also

CFileDialog::GetPathName, GetStartPosition, CFileDialog::GetFileTitle