]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
Include wx/containr.h according to precompiled headers of wx/wx.h (with other minor...
[wxWidgets.git] / src / generic / treectlg.cpp
index fa66da1ac62bfca5ace5b41e6e6b61f92a0df88e..c0b0ca5d1a4c772c11158fd1fa144c14422ac75f 100644 (file)
     #include "wx/dcclient.h"
     #include "wx/timer.h"
     #include "wx/settings.h"
+    #include "wx/listbox.h"
+    #include "wx/textctrl.h"
 #endif
 
 #include "wx/generic/treectlg.h"
-#include "wx/textctrl.h"
 #include "wx/imaglist.h"
 
 #include "wx/renderer.h"
@@ -2851,11 +2852,9 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event )
     }
 }
 
-wxTreeItemId wxGenericTreeCtrl::DoTreeHitTest(const wxPoint& point, int& flags)
+wxTreeItemId
+wxGenericTreeCtrl::DoTreeHitTest(const wxPoint& point, int& flags) const
 {
-    // JACS: removed wxYieldIfNeeded() because it can cause the window
-    // to be deleted from under us if a close window event is pending
-
     int w, h;
     GetSize(&w, &h);
     flags=0;
@@ -3566,10 +3565,6 @@ void wxGenericTreeCtrl::OnGetToolTip( wxTreeEvent &event )
 // be removed, as well as the #else case below.
 #define _USE_VISATTR 0
 
-#if _USE_VISATTR
-#include "wx/listbox.h"
-#endif
-
 //static
 wxVisualAttributes
 #if _USE_VISATTR