X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6418ad5ec8e66c3b367b59b56e0849399774f3ec..f1a736636c32fa9cda80447c9f17287484ea8094:/include/wx/statusbr.h diff --git a/include/wx/statusbr.h b/include/wx/statusbr.h index 9b40bf23ca..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!"); - return wxWindow::DoSetToolTip(tip); + wxWindow::DoSetToolTip(tip); } - +#endif + virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }