X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcd223d1d14d7a8cf2f3b576b05fbc24606cc511..779e28da630ef9fba6441fb0bab01cd538a7e7bb:/src/msw/statusbar.cpp diff --git a/src/msw/statusbar.cpp b/src/msw/statusbar.cpp index 9df8eb782a..f4284ab52d 100644 --- a/src/msw/statusbar.cpp +++ b/src/msw/statusbar.cpp @@ -89,7 +89,7 @@ WXDWORD wxStatusBar::MSWGetStyle(long style, WXDWORD *exstyle) const WXDWORD msStyle = wxStatusBarBase::MSWGetStyle(style, exstyle); // wxSTB_SIZEGRIP is part of our default style but it doesn't make sense to - // show size grip if this is the status bar of a non-resizeable TLW so turn + // show size grip if this is the status bar of a non-resizable TLW so turn // it off in such case wxWindow * const parent = GetParent(); wxCHECK_MSG( parent, msStyle, wxS("Status bar must have a parent") ); @@ -153,11 +153,13 @@ wxStatusBar::~wxStatusBar() // occupy PostSizeEventToParent(); +#if wxUSE_TOOLTIPS // delete existing tooltips for (size_t i=0; i 0) && (nFields < 255), "too many fields" ); - wxStatusBarBase::SetFieldsCount(nFields, widths); - - MSWUpdateFieldsWidths(); - // keep in synch also our m_tooltips array +#if wxUSE_TOOLTIPS // reset all current tooltips for (size_t i=0; i