]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/frame.cpp
implementing rollover and pressed image for bitmapbutton on osx_cocoa
[wxWidgets.git] / src / osx / carbon / frame.cpp
index 156212156959f3f1ec7898796ffd603ce3f75e32..87843156b54256d21864a3cbb04770ac1ef5477d 100644 (file)
@@ -61,7 +61,8 @@ bool wxFrame::Create(wxWindow *parent,
 
 wxFrame::~wxFrame()
 {
-    m_isBeingDeleted = true;
+    SendDestroyEvent();
+
     DeleteAllBars();
 }
 
@@ -152,7 +153,7 @@ void wxFrame::OnSysColourChanged(wxSysColourChangedEvent& event)
         wxSysColourChangedEvent event2;
 
         event2.SetEventObject( m_frameStatusBar );
-        m_frameStatusBar->ProcessEvent(event2);
+        m_frameStatusBar->GetEventHandler()->ProcessEvent(event2);
     }
 #endif // wxUSE_STATUSBAR
 
@@ -362,7 +363,7 @@ void wxFrame::PositionToolBar()
     int cw, ch;
 
     GetSize( &cw , &ch ) ;
-            
+
     int statusX = 0 ;
     int statusY = 0 ;