Don't update the help string in this case, this is not necessary and can clear
the help string set elsewhere.
See #15315.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74467
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-wxTopLevelWindowMSW::HandleMenuSelect(WXWORD nItem, WXWORD flags, WXHMENU WXUNUSED(hMenu))
+wxTopLevelWindowMSW::HandleMenuSelect(WXWORD nItem, WXWORD flags, WXHMENU hMenu)
+ // Ignore the special messages generated when the menu is closed (this is
+ // the only case when the flags are set to -1), in particular don't clear
+ // the help string in the status bar when this happens as it had just been
+ // restored by the base class code.
+ if ( !hMenu && flags == 0xffff )
+ return false;
+
// sign extend to int from unsigned short we get from Windows
int item = (signed short)nItem;
// sign extend to int from unsigned short we get from Windows
int item = (signed short)nItem;