From 864c08b2ed2f9d6afaf68738fbd9b8c3ecc68df9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 10 Jan 2012 17:01:09 +0000 Subject: [PATCH] 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 --- include/wx/msw/statusbar.h | 2 ++ src/msw/statusbar.cpp | 8 ++++++++ 2 files changed, 10 insertions(+) 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