diff --git a/include/wx/msw/treectrl.h b/include/wx/msw/treectrl.h index 9908124e1f..8191e7d94d 100644 --- a/include/wx/msw/treectrl.h +++ b/include/wx/msw/treectrl.h @@ -230,7 +230,7 @@ public: { return GetItemParent( item ); } // Expose the base class method hidden by the one above. - wxWindow *GetParent() const { return wxScrolledWindow::GetParent(); } + wxWindow *GetParent() const { return wxControl::GetParent(); } #endif // WXWIN_COMPATIBILITY_2_2 // for this enumeration function you must pass in a "cookie" parameter