From: Julian Smart Date: Fri, 13 May 2005 12:12:11 +0000 (+0000) Subject: Reduce dependency on declarations that may or may not be present X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f3f717033dbff8eb6fd9ad047148909ddd296476 Reduce dependency on declarations that may or may not be present git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index 10d4f48857..438cb312c0 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -31,6 +31,7 @@ #if wxUSE_TREECTRL #include "wx/msw/private.h" +#include "wx/msw/missing.h" // Set this to 1 to be _absolutely_ sure that repainting will work for all // comctl32.dll versions @@ -677,7 +678,7 @@ bool wxTreeCtrl::Create(wxWindow *parent, wstyle |= TVS_CHECKBOXES; #endif // wxUSE_CHECKBOXES_IN_MULTI_SEL_TREE -#ifndef __WXWINCE__ +#if !defined(__WXWINCE__) && defined(TVS_INFOTIP) // Need so that TVN_GETINFOTIP messages will be sent wstyle |= TVS_INFOTIP; #endif @@ -2668,6 +2669,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) break; } +#ifdef TVN_GETINFOTIP case TVN_GETINFOTIP: { eventType = wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP; @@ -2678,6 +2680,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) break; } +#endif #endif case TVN_GETDISPINFO: @@ -3032,6 +3035,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) break; #ifndef __WXWINCE__ +#ifdef TVN_GETINFOTIP case TVN_GETINFOTIP: { // If the user permitted a tooltip change, change it @@ -3041,6 +3045,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) } } break; +#endif #endif case TVN_SELCHANGING: