wxFrameBase code unintentionally excluded the function generating wxUpdateUIEvents for the menus from compilation when wxUSE_STATUSBAR was turned off. Move OnMenuOpen() out of #if wxUSE_STATUSBAR section to ensure that it's compiled whenever wxUSE_MENUS==1. Closes #17553.