BCGControlBar Pro for MFC
virtual BOOL CBCGPEdit::OnIllegalFileName ( CString &  strFileName)
protectedvirtual

Called by the framework when the edit control contains an illegal file name and this name is used in a file dialog.

Returns
Should return TRUE if you process this notification.

Override this method in a derived class if you need to handle a situation when a file dialog is displayed with an illegal file name contained in the edit control.

You have to return TRUE to stop the default processing. The default processing just displays a message box warning a user about illegal file name.

Parameters
strFileNameSpecifies the file name.