+
+#endif // wxUSE_BASE
+
+// ----------------------------------------------------------------------------
+// wxMessageOutputMessageBox
+// ----------------------------------------------------------------------------
+
+#if wxUSE_GUI
+
+void wxMessageOutputMessageBox::Printf(const wxChar* format, ...)
+{
+ va_list args;
+ va_start(args, format);
+ wxString out;
+
+ out.PrintfV(format, args);
+ va_end(args);
+
+ // the native MSW msg box understands the TABs, others don't
+#ifndef __WXMSW__
+ out.Replace(wxT("\t"), wxT(" "));
+#endif
+
+ wxString title;
+ if ( wxTheApp )
+ title.Printf(_("%s message"), wxTheApp->GetAppName().c_str());
+
+ ::wxMessageBox(out, title);
+}
+
+#endif // wxUSE_GUI
+