]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/treectrl.h
use MSWCreateControl() instead of duplicating its code
[wxWidgets.git] / include / wx / msw / treectrl.h
index 9908124e1ff2e369501883fe0526a81036fe6b19..1b56eb819c43a76c28b709e4b31e24faae7eb6a4 100644 (file)
@@ -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
@@ -478,6 +478,7 @@ private:
     friend class wxTreeSortHelper;
 
     DECLARE_DYNAMIC_CLASS(wxTreeCtrl)
+    DECLARE_NO_COPY_CLASS(wxTreeCtrl)
 };
 
 #endif // wxUSE_TREECTRL