+ return m_images.GetCount()-1;
+}
+
+int wxGenericImageList::Add( const wxBitmap& bitmap, const wxBitmap& mask )
+{
+ wxBitmap bmp(bitmap);
+ if (mask.Ok())
+ bmp.SetMask(new wxMask(mask));
+ return Add(bmp);
+}
+
+int wxGenericImageList::Add( const wxBitmap& bitmap, const wxColour& maskColour )
+{
+ wxImage img = bitmap.ConvertToImage();
+ img.SetMaskColour(maskColour.Red(), maskColour.Green(), maskColour.Blue());
+ return Add(wxBitmap(img));