git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38438
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/mac/uma.h"
extern wxWindowList wxModelessWindows;
#include "wx/mac/uma.h"
extern wxWindowList wxModelessWindows;
-extern wxList wxPendingDelete;
+//extern wxList wxPendingDelete;
BEGIN_EVENT_TABLE(wxFrame, wxFrameBase)
EVT_ACTIVATE(wxFrame::OnActivate)
BEGIN_EVENT_TABLE(wxFrame, wxFrameBase)
EVT_ACTIVATE(wxFrame::OnActivate)
wxStatusBar *statusBar;
statusBar = new wxStatusBar(this, id, style, name);
wxStatusBar *statusBar;
statusBar = new wxStatusBar(this, id, style, name);
- statusBar->SetSize(100 , WX_MAC_STATUSBAR_HEIGHT);
+ statusBar->SetSize(100, WX_MAC_STATUSBAR_HEIGHT);
statusBar->SetFieldsCount(number);
return statusBar;
statusBar->SetFieldsCount(number);
return statusBar;
? m_winLastFocused->GetParent()
: NULL;
? m_winLastFocused->GetParent()
: NULL;
parent = this;
wxSetFocusToChild(parent, &m_winLastFocused);
if (m_frameMenuBar != NULL)
{
parent = this;
wxSetFocusToChild(parent, &m_winLastFocused);
if (m_frameMenuBar != NULL)
{
- m_frameMenuBar->MacInstallMenuBar() ;
+ m_frameMenuBar->MacInstallMenuBar();
- else if (wxTheApp->GetTopWindow() && wxTheApp->GetTopWindow()->IsKindOf(CLASSINFO(wxFrame)))
- // Trying toplevel frame membar
- if (((wxFrame*)wxTheApp->GetTopWindow())->GetMenuBar())
- ((wxFrame*)wxTheApp->GetTopWindow())->GetMenuBar()->MacInstallMenuBar();
- }
+ wxFrame *tlf = wxDynamicCast( wxTheApp->GetTopWindow(), wxFrame );
+ if (tlf != NULL)
+ {
+ // Trying top-level frame membar
+ if (tlf->GetMenuBar())
+ tlf->GetMenuBar()->MacInstallMenuBar();
+ }
+ }