]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/treectrl/treetest.cpp
fixed bug in generation of thumb scroll events
[wxWidgets.git] / samples / treectrl / treetest.cpp
index 4a7a80ded0836b1087c28340a05bf48eeb0e437b..e7cb2cb8f5f4a9ed7348165241acd84ddf6ffe42 100644 (file)
@@ -669,8 +669,7 @@ void MyTreeCtrl::CreateImageList(int size)
         }
         else
         {
-            images->Add(wxImage(icons[i]).Rescale(size, size).
-                                    ConvertToBitmap());
+            images->Add(wxBitmap(wxBitmap(icons[i]).ConvertToImage().Rescale(size, size)));
         }
     }
 #endif // MSW/!MSW
@@ -714,8 +713,7 @@ void MyTreeCtrl::CreateButtonsImageList(int size)
         }
         else
         {
-            images->Add(wxImage(icons[i]).Rescale(size, size).
-                                    ConvertToBitmap());
+            images->Add(wxBitmap(icons[i].ConvertToImage().Rescale(size, size)));
         }
     }
 #endif // MSW/!MSW