]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
added and documented wxDir::HasFiles/SubDirs(), use the latter in wxDirDialog - it...
[wxWidgets.git] / src / common / treebase.cpp
index a9dce6dddb60259240e5456bd3cee44120a78ce1..ddd3c5575d6472f24e2e2bf5625cb91a4263d306 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"
@@ -71,7 +73,8 @@ wxTreeEvent::wxTreeEvent(wxEventType commandType, int id)
            : wxNotifyEvent(commandType, id)
 {
     m_code = 0;
            : wxNotifyEvent(commandType, id)
 {
     m_code = 0;
-    m_itemOld = 0;
+    m_itemOld = 0l;
 }
 
 }
 
+#endif // wxUSE_TREECTRL