wxAppBase::wxAppBase()
{
- // this function is defined by IMPLEMENT_APP() macro in the user code
- extern const wxBuildOptions& wxGetBuildOptions();
-
- if ( !CheckBuildOptions(wxGetBuildOptions()) )
- {
- wxLogFatalError(_T("Mismatch between the program and library build ")
- _T("versions detected."));
- }
-
wxTheApp = (wxApp *)this;
#if WXWIN_COMPATIBILITY_2_2
#endif // wxUSE_GUI
+int wxAppBase::FilterEvent(wxEvent& WXUNUSED(event))
+{
+ // process the events normally by default
+ return -1;
+}
+
// ----------------------------------------------------------------------------
// cmd line parsing
// ----------------------------------------------------------------------------
int verMaj = wxMAJOR_VERSION,
verMin = wxMINOR_VERSION;
- return wxCMP(isDebug) && wxCMP(verMaj) && wxCMP(verMin);
+ if ( !(wxCMP(isDebug) && wxCMP(verMaj) && wxCMP(verMin)) )
+ {
+ wxLogFatalError(_T("Mismatch between the program and library build ")
+ _T("versions detected."));
+ // normally wxLogFatalError doesn't return
+ return FALSE;
+ }
#undef wxCMP
+
+ return TRUE;
}
#ifdef __WXDEBUG__