]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
Added inline setters for wxTreeEvent so we don't need to add new
[wxWidgets.git] / src / common / treebase.cpp
index a9dce6dddb60259240e5456bd3cee44120a78ce1..656da196ac33832e7294e9dc444cc5f0a3cdf671 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #endif
 
+#if wxUSE_TREECTRL
+
 #include "wx/treebase.h"
 #include "wx/settings.h"
 #include "wx/log.h"
 #include "wx/treebase.h"
 #include "wx/settings.h"
 #include "wx/log.h"
@@ -35,7 +37,6 @@
 #include "wx/dynarray.h"
 #include "wx/arrimpl.cpp"
 #include "wx/dcclient.h"
 #include "wx/dynarray.h"
 #include "wx/arrimpl.cpp"
 #include "wx/dcclient.h"
-#include "wx/msgdlg.h"
 
 
 // ----------------------------------------------------------------------------
 
 
 // ----------------------------------------------------------------------------
@@ -67,11 +68,13 @@ DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_END_DRAG)
 
 IMPLEMENT_DYNAMIC_CLASS(wxTreeEvent, wxNotifyEvent)
 
 
 IMPLEMENT_DYNAMIC_CLASS(wxTreeEvent, wxNotifyEvent)
 
+
 wxTreeEvent::wxTreeEvent(wxEventType commandType, int id)
            : wxNotifyEvent(commandType, id)
 {
 wxTreeEvent::wxTreeEvent(wxEventType commandType, int id)
            : wxNotifyEvent(commandType, id)
 {
-    m_code = 0;
-    m_itemOld = 0;
+    m_itemOld = 0l;
+    m_editCancelled = FALSE;
 }
 
 }
 
+#endif // wxUSE_TREECTRL