]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/treectrl/treetest.cpp
include "wx/toolbar.h" instead of tbar(base|smpl).h
[wxWidgets.git] / samples / treectrl / treetest.cpp
index 93b122679824fbcb83388981b6e201ee898fa7c4..351c59f045840d93e1c0141dbe0289de52d5ea57 100644 (file)
@@ -696,7 +696,7 @@ void MyTreeCtrl::CreateButtonsImageList(int size)
         }
         else
         {
-            images->Add(wxBitmap(icons[i].ConvertToImage().Rescale(size, size)));
+            images->Add(wxBitmap(wxBitmap(icons[i]).ConvertToImage().Rescale(size, size)));
         }
     }
 
@@ -836,6 +836,7 @@ void MyTreeCtrl::DoToggleIcon(const wxTreeItemId& item)
 void MyTreeCtrl::name(wxTreeEvent& event)                        \
 {                                                                \
     wxLogMessage(wxT(#name));                                    \
+    SetLastItem(wxTreeItemId());                                 \
     event.Skip();                                                \
 }