BEGIN_EVENT_TABLE(wxFrame, wxFrameBase)
EVT_ACTIVATE(wxFrame::OnActivate)
EVT_SYS_COLOUR_CHANGED(wxFrame::OnSysColourChanged)
- EVT_SIZE(wxFrame::OnSize)
END_EVENT_TABLE()
#define WX_MAC_STATUSBAR_HEIGHT 18
long style,
const wxString& name)
{
-
if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style, name) )
return false;
}
}
-
-void wxFrame::OnSize(wxSizeEvent& event)
-{
- PositionBars();
-
- event.Skip();
-}
-
#if wxUSE_MENUS
void wxFrame::DetachMenuBar()
{
{
#if wxOSX_USE_CARBON
wxFrame* tlf = wxDynamicCast( wxNonOwnedWindow::GetFromWXWindow( (WXWindow) FrontNonFloatingWindow() ) , wxFrame );
+#elif wxOSX_USE_COCOA
+ wxFrame* tlf = wxDynamicCast( wxNonOwnedWindow::GetFromWXWindow( wxOSXGetMainWindow() ) , wxFrame );
#else
- wxFrame* tlf = (wxFrame*) wxTheApp->GetTopWindow();
+ wxFrame* tlf = wxDynamicCast( wxTheApp->GetTopWindow(), wxFrame );
#endif
bool makeCurrent = false;