다음을 통해 공유


CMFCEditBrowseCtrl::OnIllegalFileName

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

virtual BOOL OnIllegalFileName(
   CString& strFileName
);

Parameters

  • strFileName
    Specifies the illegal file name.

Return Value

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.

Requirements

Header: afxeditbrowsectrl.h

See Also

Reference

CMFCEditBrowseCtrl Class