+ WX_CLEAR_LIST(wxList, m_images);
+ m_images.Clear();
+
+ return true;
+}
+
+bool wxImageList::GetSize( int index, int &width, int &height ) const
+{
+ width = 0;
+ height = 0;
+
+ wxList::compatibility_iterator node = m_images.Item( index );
+
+ wxCHECK_MSG( node, false, wxT("wrong index in image list") );
+
+ wxObject *obj = (wxObject*)node->GetData();
+ if( obj->IsKindOf(CLASSINFO(wxIcon)))
+ {
+ wxIcon *bm = wx_static_cast( wxIcon* , obj ) ;
+ width = bm->GetWidth();
+ height = bm->GetHeight();
+ }
+ else
+ {
+ wxBitmap *bm = wx_static_cast( wxBitmap* , obj ) ;
+ width = bm->GetWidth();
+ height = bm->GetHeight();
+ }
+ return true;