// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
// ============================================================================
// declarations
// ============================================================================
// headers
// ----------------------------------------------------------------------------
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
+#include "wx/toplevel.h"
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+#endif // WX_PRECOMP
-#include "wx/defs.h"
-#include "wx/toplevel.h"
-#include "wx/app.h"
#include "wx/mgl/private.h"
// ----------------------------------------------------------------------------
return true;
}
-wxTopLevelWindowMGL::~wxTopLevelWindowMGL()
-{
- m_isBeingDeleted = true;
-
- wxTopLevelWindows.DeleteObject(this);
-
- if (wxTheApp->GetTopWindow() == this)
- wxTheApp->SetTopWindow(NULL);
-
- if ((wxTopLevelWindows.Number() == 0) &&
- (wxTheApp->GetExitOnFrameDelete()))
- {
- wxTheApp->ExitMainLoop();
- }
-}
-
bool wxTopLevelWindowMGL::ShowFullScreen(bool show, long style)
{
if (show == m_fsIsShowing) return false; // return what?
m_sizeSet = true;
wxSizeEvent event(GetSize(), GetId());
event.SetEventObject(this);
- GetEventHandler()->ProcessEvent(event);
+ HandleWindowEvent(event);
}
- if ( ret && show && AcceptsFocus() )
+ if ( ret && show && CanAcceptFocus() )
SetFocus();
// FIXME_MGL -- don't do this for popup windows?
return ret;