CFileDialog::OnFileNameOK

Override this method only if you want to provide custom validation of file names that are entered into a common file dialog box. Usually, you do not need to use this method because the framework provides default validation of file names and displays a message box if an invalid file name is entered.

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

virtual BOOL OnFileNameOK( );