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
This commit is contained in:
Julian Smart
2005-05-13 12:12:11 +00:00
parent 18ac2afbc6
commit f3f717033d

View File

@@ -31,6 +31,7 @@
#if wxUSE_TREECTRL #if wxUSE_TREECTRL
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/missing.h"
// Set this to 1 to be _absolutely_ sure that repainting will work for all // Set this to 1 to be _absolutely_ sure that repainting will work for all
// comctl32.dll versions // comctl32.dll versions
@@ -677,7 +678,7 @@ bool wxTreeCtrl::Create(wxWindow *parent,
wstyle |= TVS_CHECKBOXES; wstyle |= TVS_CHECKBOXES;
#endif // wxUSE_CHECKBOXES_IN_MULTI_SEL_TREE #endif // wxUSE_CHECKBOXES_IN_MULTI_SEL_TREE
#ifndef __WXWINCE__ #if !defined(__WXWINCE__) && defined(TVS_INFOTIP)
// Need so that TVN_GETINFOTIP messages will be sent // Need so that TVN_GETINFOTIP messages will be sent
wstyle |= TVS_INFOTIP; wstyle |= TVS_INFOTIP;
#endif #endif
@@ -2668,6 +2669,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
break; break;
} }
#ifdef TVN_GETINFOTIP
case TVN_GETINFOTIP: case TVN_GETINFOTIP:
{ {
eventType = wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP; eventType = wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP;
@@ -2678,6 +2680,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
break; break;
} }
#endif
#endif #endif
case TVN_GETDISPINFO: case TVN_GETDISPINFO:
@@ -3032,6 +3035,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
break; break;
#ifndef __WXWINCE__ #ifndef __WXWINCE__
#ifdef TVN_GETINFOTIP
case TVN_GETINFOTIP: case TVN_GETINFOTIP:
{ {
// If the user permitted a tooltip change, change it // If the user permitted a tooltip change, change it
@@ -3041,6 +3045,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
} }
} }
break; break;
#endif
#endif #endif
case TVN_SELCHANGING: case TVN_SELCHANGING: