diff --git a/include/wx/generic/treectlg.h b/include/wx/generic/treectlg.h index 833cfd1cc7..700b9a378c 100644 --- a/include/wx/generic/treectlg.h +++ b/include/wx/generic/treectlg.h @@ -304,7 +304,7 @@ protected: const wxString& text, int image = -1, int selImage = -1, wxTreeItemData *data = NULL); - virtual wxTreeItemId DoHitTest(const wxPoint& point, int& flags); + virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags); // called by wxTextTreeCtrl when it marks itself for deletion void ResetTextControl(); diff --git a/include/wx/msw/treectrl.h b/include/wx/msw/treectrl.h index bdb4123a74..b19b5ba4f6 100644 --- a/include/wx/msw/treectrl.h +++ b/include/wx/msw/treectrl.h @@ -271,7 +271,7 @@ private: const wxString& text, int image = -1, int selImage = -1, wxTreeItemData *data = NULL); - virtual wxTreeItemId DoHitTest(const wxPoint& point, int& flags); + virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags); int DoGetItemImageFromData(const wxTreeItemId& item, wxTreeItemIcon which) const; diff --git a/include/wx/treectrl.h b/include/wx/treectrl.h index 2abdade711..0b4587bc79 100644 --- a/include/wx/treectrl.h +++ b/include/wx/treectrl.h @@ -351,9 +351,9 @@ public: // and, in the second variant, fill the flags parameter with a bitmask // of wxTREE_HITTEST_xxx constants. wxTreeItemId HitTest(const wxPoint& point) - { int dummy; return DoHitTest(point, dummy); } + { int dummy; return DoTreeHitTest(point, dummy); } wxTreeItemId HitTest(const wxPoint& point, int& flags) - { return DoHitTest(point, flags); } + { return DoTreeHitTest(point, flags); } // get the bounding rectangle of the item (or of its label only) virtual bool GetBoundingRect(const wxTreeItemId& item, @@ -390,7 +390,8 @@ protected: // real HitTest() implementation: again, can't be called just HitTest() // because it's overloaded and so the non-virtual overload would be hidden - virtual wxTreeItemId DoHitTest(const wxPoint& point, int& flags) = 0; + // (and can't be called DoHitTest() because this is already in wxWindow) + virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags) = 0; wxImageList *m_imageListNormal, // images for tree elements diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 9284957c8e..112fecc4d1 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -2838,7 +2838,7 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event ) } } -wxTreeItemId wxGenericTreeCtrl::DoHitTest(const wxPoint& point, int& flags) +wxTreeItemId wxGenericTreeCtrl::DoTreeHitTest(const wxPoint& point, int& flags) { // JACS: removed wxYieldIfNeeded() because it can cause the window // to be deleted from under us if a close window event is pending diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index b564f3f4b5..cd3942ed1c 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -2014,7 +2014,7 @@ void wxTreeCtrl::DoEndEditLabel(bool discardChanges) DeleteTextCtrl(); } -wxTreeItemId wxTreeCtrl::DoHitTest(const wxPoint& point, int& flags) +wxTreeItemId wxTreeCtrl::DoTreeHitTest(const wxPoint& point, int& flags) { TV_HITTESTINFO hitTestInfo; hitTestInfo.pt.x = (int)point.x;