// headers
// ----------------------------------------------------------------------------
+#include "wx/toplevel.h"
+
#ifndef WX_PRECOMP
- #include "wx/toplevel.h"
#include "wx/app.h"
#endif // WX_PRECOMP
return true;
}
-wxTopLevelWindowMGL::~wxTopLevelWindowMGL()
-{
- m_isBeingDeleted = true;
-
- wxTopLevelWindows.DeleteObject(this);
-
- if (wxTheApp->GetTopWindow() == this)
- wxTheApp->SetTopWindow(NULL);
-
- if (wxTopLevelWindows.IsEmpty() &&
- wxTheApp->GetExitOnFrameDelete())
- {
- wxTheApp->ExitMainLoop();
- }
-}
-
bool wxTopLevelWindowMGL::ShowFullScreen(bool show, long style)
{
if (show == m_fsIsShowing) return false; // return what?
GetEventHandler()->ProcessEvent(event);
}
- if ( ret && show && AcceptsFocus() )
+ if ( ret && show && CanAcceptFocus() )
SetFocus();
// FIXME_MGL -- don't do this for popup windows?
return ret;