CFileDialog::GetFileExt

This method retrieves the extension of the file name entered into the dialog box. For example, if the name of the file entered is Data.txt, GetFileExt returns "txt".

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 GetFileExt( ) const;

See Also

CFileDialog::GetPathName, CFileDialog::GetFileName, CFileDialog::GetFileTitle