X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..5adad46628e545a6d4172ecf3a0cb848934f5cd0:/src/common/framecmn.cpp diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index 714400961b..9ec8339d2f 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -385,6 +385,7 @@ void wxFrameBase::SetStatusWidths(int n, const int widths_field[] ) bool wxFrameBase::ShowMenuHelp(wxStatusBar *statbar, int menuId) { +#if wxUSE_MENUS if ( !statbar ) return FALSE; @@ -409,6 +410,9 @@ bool wxFrameBase::ShowMenuHelp(wxStatusBar *statbar, int menuId) statbar->SetStatusText(helpString); return !helpString.IsEmpty(); +#else // !wxUSE_MENUS + return FALSE; +#endif // wxUSE_MENUS/!wxUSE_MENUS } #endif // wxUSE_STATUSBAR