From df8442a339ba2cbdab14ff339b3e4a54c49515d3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 27 Apr 2000 20:42:09 +0000 Subject: [PATCH] fixed problem with help text being left in the status bar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/frame.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 278e4c421d..f4fd913f3a 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -962,7 +962,15 @@ bool wxFrame::HandleMenuSelect(WXWORD nItem, WXWORD flags, WXHMENU hMenu) else { // don't give hints for separators (doesn't make sense) nor for the - // items opening popup menus (they don't have them anyhow) + // items opening popup menus (they don't have them anyhow) but do clear + // the status line - otherwise, we would be left with the help message + // for the previous item which doesn't apply any more + wxStatusBar *statbar = GetStatusBar(); + if ( statbar ) + { + statbar->SetStatusText(wxEmptyString); + } + return FALSE; }