- 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
+{
+ wxNode *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 )
+{
+ wxNode *node = m_images.Item( index );
+
+ wxCHECK_MSG( node, FALSE, wxT("wrong index in image list") );