- wxNode *node = m_images.Nth( index );
-
- wxCHECK_MSG( node, FALSE, _T("wrong index in image list") );
+ wxImage img = bitmap.ConvertToImage();
+ img.SetMaskColour(maskColour.Red(), maskColour.Green(), maskColour.Blue());
+ return Add(wxBitmap(img));
+}
+
+const wxBitmap *wxGenericImageList::GetBitmap( int index ) const
+{
+ wxList::compatibility_iterator node = m_images.Item( index );
+
+ wxCHECK_MSG( node, (wxBitmap *) NULL, wxT("wrong index in image list") );
+
+ return (wxBitmap*)node->GetData();
+}
+
+bool wxGenericImageList::Replace( int index, const wxBitmap &bitmap )
+{
+ wxList::compatibility_iterator node = m_images.Item( index );
+
+ wxCHECK_MSG( node, FALSE, wxT("wrong index in image list") );