Export (0) Print
Expand All


Called by the framework when an illegal file name was entered in the edit control.

virtual BOOL OnIllegalFileName(
   CString& strFileName


Specifies the illegal file name.

Should return FALSE if this file name can not be passed further to the file dialog. In this case, focus is set back to the edit control and the user should continue editing. The default implementation displays a message box telling the user about the illegal file name and returns FALSE. You can override this method, correct the file name, and return TRUE for further processing.

Header: afxeditbrowsectrl.h

© 2014 Microsoft