+
+ m_ani_images = wxImage::GetImageCount ( dir + _T("horse3.ani"), wxBITMAP_TYPE_ANI );
+ if (m_ani_images==0)
+ wxLogError(wxT("No ANI-format images found"));
+ else
+ my_horse_ani = new wxBitmap [m_ani_images];
+ int i ;
+ for (i=0; i < m_ani_images; i++)
+ {
+ image.Destroy();
+ if (!image.LoadFile( dir + _T("horse3.ani"), wxBITMAP_TYPE_ANI, i ))
+ {
+ wxString tmp = wxT("Can't load image number ");
+ tmp << i ;
+ wxLogError(tmp);
+ }
+ else
+ my_horse_ani [i] = wxBitmap( image );
+ }
+
+