// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "toplevelbase.h"
#endif
if ( !wxPendingDelete.Member(this) )
wxPendingDelete.Append(this);
+ // but hide it immediately
+ Hide();
+
return TRUE;
}