>From e362c659eb459cfb8be63a7c7860c56074f2b761 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin
Date: Fri, 28 Nov 2014 02:48:26 +0100 Subject: [PATCH 4/4] Remove the attempts to use MDI parent status bar for menu help display. This code actually had no effect because the MDI child frame never received wxEVT_MENU_HIGHLIGHT anyhow and the help was (correctly) displayed in the parent frame status bar just because this is where all the events went. --- docmdichildframe_ex.cpp | 46 ---------------------------------------------- docmdichildframe_ex.hpp | 8 -------- 2 files changed, 0 insertions(+), 54 deletions(-) diff --git a/docmdichildframe_ex.cpp b/docmdichildframe_ex.cpp index 4655299..7b2ba9c 100644 --- a/docmdichildframe_ex.cpp +++ b/docmdichildframe_ex.cpp @@ -30,7 +30,6 @@ IMPLEMENT_CLASS(DocMDIChildFrameEx, wxDocMDIChildFrame) BEGIN_EVENT_TABLE(DocMDIChildFrameEx, wxDocMDIChildFrame) - EVT_MENU_HIGHLIGHT_ALL(DocMDIChildFrameEx::UponMenuHighlight) END_EVENT_TABLE() DocMDIChildFrameEx::DocMDIChildFrameEx @@ -45,54 +44,9 @@ ,wxString const& name ) :wxDocMDIChildFrame(doc, view, parent, id, title, pos, size, style, name) - ,status_bar_sought_from_menu_highlight_handler_(false) { } -wxStatusBar* DocMDIChildFrameEx::GetStatusBar() const -{ - if(!status_bar_sought_from_menu_highlight_handler_) - { - return wxDocMDIChildFrame::GetStatusBar(); - } - - wxStatusBar* status_bar = wxDocMDIChildFrame::GetStatusBar(); - if(status_bar) - { - return status_bar; - } - - wxFrame* parent_frame = dynamic_cast