virtual BOOL OnFileNameOK( );
Return Value
1 if the filename is not a valid filename; otherwise 0.
Remarks
Override this function only if you want to provide custom validation of filenames that are entered into a common file dialog box. This function allows you to reject a filename for any application-specific reason. Normally, you do not need to use this function because the framework provides default validation of filenames and displays a message box if an invalid filename is entered.
If 1 is returned, the dialog box will remain displayed for the user to enter another filename. The dialog procedure dismisses the dialog if the return is 0. Other nonzero return values are currently reserved and should not be used.
CFileDialog Overview | Class Members | Hierarchy Chart
See Also OPENFILENAME