+wxAppBase::wxAppBase()
+{
+ wxTheApp = (wxApp *)this;
+
+ // VZ: what's this? is it obsolete?
+ m_wantDebugOutput = FALSE;
+
+#if wxUSE_GUI
+ m_topWindow = (wxWindow *)NULL;
+ m_useBestVisual = FALSE;
+ m_exitOnFrameDelete = TRUE;
+ m_isActive = TRUE;
+#endif // wxUSE_GUI
+}
+
+// ----------------------------------------------------------------------------
+// initialization and termination
+// ----------------------------------------------------------------------------
+
+#if wxUSE_GUI
+bool wxAppBase::OnInitGui()
+{
+#ifdef __WXUNIVERSAL__
+ if ( !wxTheme::CreateDefault() )
+ return FALSE;
+#endif // __WXUNIVERSAL__
+
+ return TRUE;
+}
+#endif // wxUSE_GUI
+
+int wxAppBase::OnExit()
+{
+#if wxUSE_CONFIG
+ // delete the config object if any (don't use Get() here, but Set()
+ // because Get() could create a new config object)
+ delete wxConfigBase::Set((wxConfigBase *) NULL);
+#endif // wxUSE_CONFIG
+
+#ifdef __WXUNIVERSAL__
+ delete wxTheme::Set(NULL);
+#endif // __WXUNIVERSAL__
+
+ return 0;
+}
+