From: Vadim Zeitlin Date: Tue, 10 Jan 2012 17:01:09 +0000 (+0000) Subject: Add missing wxUSE_TOOLTIPS and wxUSE_UXTHEME checks to wxMSW. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/864c08b2ed2f9d6afaf68738fbd9b8c3ecc68df9 Add missing wxUSE_TOOLTIPS and wxUSE_UXTHEME checks to wxMSW. Allow compiling wxStatusBar without tooltips and theme support. Closes #13846. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/statusbar.h b/include/wx/msw/statusbar.h index f637807f03..1e9ca99054 100644 --- a/include/wx/msw/statusbar.h +++ b/include/wx/msw/statusbar.h @@ -76,8 +76,10 @@ protected: // used by DoUpdateStatusText() wxClientDC *m_pDC; +#if wxUSE_TOOLTIPS // the tooltips used when wxSTB_SHOW_TIPS is given wxVector m_tooltips; +#endif private: struct MSWBorders diff --git a/src/msw/statusbar.cpp b/src/msw/statusbar.cpp index 48960afe22..f4284ab52d 100644 --- a/src/msw/statusbar.cpp +++ b/src/msw/statusbar.cpp @@ -153,11 +153,13 @@ wxStatusBar::~wxStatusBar() // occupy PostSizeEventToParent(); +#if wxUSE_TOOLTIPS // delete existing tooltips for (size_t i=0; i