X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4ccbb8de5cae88b3c4e11140905691ee9e4a4a82..404b319a85dadd7decf7a5a5331020520031a41c:/src/msw/statusbar.cpp?ds=sidebyside diff --git a/src/msw/statusbar.cpp b/src/msw/statusbar.cpp index a6b42bac5a..321df1bb05 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") ); @@ -103,14 +103,14 @@ WXDWORD wxStatusBar::MSWGetStyle(long style, WXDWORD *exstyle) const // is not given if ( !(style & wxSTB_SIZEGRIP) ) { - *exstyle |= CCS_TOP; + msStyle |= CCS_TOP; } else { #ifndef __WXWINCE__ // may be some versions of comctl32.dll do need it - anyhow, it won't // do any harm - *exstyle |= SBARS_SIZEGRIP; + msStyle |= SBARS_SIZEGRIP; #endif } @@ -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