event.Skip();
}
+void wxFrame::SendSizeEvent()
+{
+ wxSizeEvent event(GetSize(), GetId());
+ event.SetEventObject(this);
+ GetEventHandler()->ProcessEvent(event);
+}
+
#if wxUSE_MENUS
void wxFrame::PositionMenuBar()
}
}
+void wxFrame::DetachMenuBar()
+{
+ wxFrameBase::DetachMenuBar();
+ SendSizeEvent();
+}
+
+void wxFrame::AttachMenuBar(wxMenuBar *menubar)
+{
+ wxFrameBase::AttachMenuBar(menubar);
+ SendSizeEvent();
+}
+
#endif // wxUSE_MENUS
#if wxUSE_STATUSBAR
}
}
+wxStatusBar* wxFrame::CreateStatusBar(int number, long style,
+ wxWindowID id, const wxString& name)
+{
+ wxStatusBar *bar = wxFrameBase::CreateStatusBar(number, style, id, name);
+ SendSizeEvent();
+ return bar;
+}
+
#endif // wxUSE_STATUSBAR
wxPoint wxFrame::GetClientAreaOrigin() const