#include "wx/confbase.h"
#include "wx/tokenzr.h"
#include "wx/utils.h"
+#include "wx/msgout.h"
#if wxUSE_GUI
#include "wx/artprov.h"
return -1;
}
+void wxAppBase::DoInit()
+{
+ if(wxMessageOutput::Get()) return;
+#if wxUSE_GUI
+ #ifdef __WXMOTIF__
+ wxMessageOutput::Set(new wxMessageOutputLog);
+ #else
+ wxMessageOutput::Set(new wxMessageOutputMessageBox);
+ #endif
+#else
+ wxMessageOutput::Set(new wxMessageOutputStderr);
+#endif
+}
+
// ----------------------------------------------------------------------------
// cmd line parsing
// ----------------------------------------------------------------------------
bool wxAppBase::OnInit()
{
+ DoInit();
#if wxUSE_CMDLINE_PARSER
wxCmdLineParser parser(argc, argv);