X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d08e6e59ed021b0ecfcbf0760347836d6cc45d11..31a06b07cce898a22d0ca3992501e85da9c22f13:/src/univ/framuniv.cpp diff --git a/src/univ/framuniv.cpp b/src/univ/framuniv.cpp index f6b00d2b10..19b2c610cb 100644 --- a/src/univ/framuniv.cpp +++ b/src/univ/framuniv.cpp @@ -76,6 +76,13 @@ void wxFrame::OnSize(wxSizeEvent& event) event.Skip(); } +void wxFrame::SendSizeEvent() +{ + wxSizeEvent event(GetSize(), GetId()); + event.SetEventObject(this); + GetEventHandler()->ProcessEvent(event); +} + #if wxUSE_MENUS void wxFrame::PositionMenuBar() @@ -90,6 +97,18 @@ void wxFrame::PositionMenuBar() } } +void wxFrame::DetachMenuBar() +{ + wxFrameBase::DetachMenuBar(); + SendSizeEvent(); +} + +void wxFrame::AttachMenuBar(wxMenuBar *menubar) +{ + wxFrameBase::AttachMenuBar(menubar); + SendSizeEvent(); +} + #endif // wxUSE_MENUS #if wxUSE_STATUSBAR @@ -104,6 +123,14 @@ void wxFrame::PositionStatusBar() } } +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