]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/treectrl.cpp
Added extra hit test style for more accurate reporting
[wxWidgets.git] / src / os2 / treectrl.cpp
index da60f7a692466703edc33293709b928e8f095905..9ee999969a98f070b3fdbcf2562fc81f769ad0d2 100644 (file)
 
 #if wxUSE_TREECTRL
 
+#include "wx/treectrl.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
+    #include "wx/log.h"
+    #include "wx/app.h"
+    #include "wx/settings.h"
 #endif
 
 #include "wx/os2/private.h"
 
-#include "wx/app.h"
-#include "wx/log.h"
 #include "wx/imaglist.h"
-#include "wx/settings.h"
-#include "wx/os2/treectrl.h"
 
 // a macro to hide the ugliness of nested casts
 #define HITEM(item)     (HTREEITEM)(WXHTREEITEM)(item)
@@ -1092,7 +1093,7 @@ bool wxTreeCtrl::IsVisible (
     vWxRectContainer.SetTop(vRectContainer.yTop);
     vWxRectContainer.SetRight(vRectContainer.xRight);
     vWxRectContainer.SetBottom(vRectContainer.yBottom);
-    return (vWxRectContainer.Inside(wxPoint(vWxRectRecord.x, vWxRectRecord.y)));
+    return (vWxRectContainer.Contains(wxPoint(vWxRectRecord.x, vWxRectRecord.y)));
 } // end of wxTreeCtrl::IsVisible
 
 bool wxTreeCtrl::ItemHasChildren (