X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f888d61444c1549c5e8a593055f0159dd07eca86..68d31398dd70c5c9ba7c8cc1a21bcf08eeba78f6:/src/msw/treectrl.cpp?ds=sidebyside diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index a9ab748593..b8a78965fd 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -398,6 +398,8 @@ public: private: wxArrayTreeItemIds& m_selections; + + DECLARE_NO_COPY_CLASS(TraverseSelections) }; // internal class for counting tree items @@ -425,6 +427,8 @@ public: private: size_t m_count; + + DECLARE_NO_COPY_CLASS(TraverseCounter) }; // ---------------------------------------------------------------------------- @@ -1015,7 +1019,8 @@ void wxTreeCtrl::SetItemImage(const wxTreeItemId& item, int image, case wxTreeItemIcon_Normal: { const int imageNormalOld = GetItemImage(item); - const int imageSelOld = GetItemSelectedImage(item); + const int imageSelOld = + GetItemImage(item, wxTreeItemIcon_Selected); // always set the normal image imageNormal = image; @@ -1040,7 +1045,7 @@ void wxTreeCtrl::SetItemImage(const wxTreeItemId& item, int image, // the wxTreeItemIndirectData GetItemXXXImage() will use it to // get the images imageNormal = GetItemImage(item); - imageSel = GetItemSelectedImage(item); + imageSel = GetItemImage(item, wxTreeItemIcon_Selected); // if it doesn't have it yet, add it wxTreeItemIndirectData *data = new @@ -1772,10 +1777,12 @@ void wxTreeCtrl::Toggle(const wxTreeItemId& item) DoExpand(item, TVE_TOGGLE); } +#if WXWIN_COMPATIBILITY_2_4 void wxTreeCtrl::ExpandItem(const wxTreeItemId& item, int action) { DoExpand(item, action); } +#endif void wxTreeCtrl::Unselect() {