diff --git a/include/wx/statusbr.h b/include/wx/statusbr.h index e0efd1cff4..0b286fc7f7 100644 --- a/include/wx/statusbr.h +++ b/include/wx/statusbr.h @@ -186,13 +186,15 @@ protected: // wxWindow overrides: - virtual void DoSetToolTip( wxToolTip *tip ) +#if wxUSE_TOOLTIPS + virtual void DoSetToolTip( wxToolTip *tip ) { wxASSERT_MSG(!HasFlag(wxSTB_SHOW_TIPS), "Do not set tooltip(s) manually when using wxSTB_SHOW_TIPS!"); wxWindow::DoSetToolTip(tip); } - +#endif + virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }