# include "wx/debug.h"
#endif
-const wxChar wxFileCtrlNameStr[] = wxT( "wxfilectrl" );
+const char wxFileCtrlNameStr[] = "wxfilectrl";
-DEFINE_EVENT_TYPE( wxEVT_FILECTRL_SELECTIONCHANGED );
-DEFINE_EVENT_TYPE( wxEVT_FILECTRL_FILEACTIVATED );
-DEFINE_EVENT_TYPE( wxEVT_FILECTRL_FOLDERCHANGED );
+DEFINE_EVENT_TYPE( wxEVT_FILECTRL_SELECTIONCHANGED )
+DEFINE_EVENT_TYPE( wxEVT_FILECTRL_FILEACTIVATED )
+DEFINE_EVENT_TYPE( wxEVT_FILECTRL_FOLDERCHANGED )
IMPLEMENT_DYNAMIC_CLASS( wxFileCtrlEvent, wxCommandEvent )
wxASSERT_MSG( !wxDynamicCast( GetEventObject(), wxFileCtrl )->HasMultipleFileSelection(),
wxT( "Please use GetFiles() to get all files instead of this function" ) );
- if ( files.Count() == 0 )
- return wxEmptyString;
- else
- return files[0];
+ wxString string;
+ if (m_files.Count() != 0)
+ string = m_files[0];
+ return string;
}
#endif // wxUSE_FILECTRL