#if wxUSE_IMAGLIST
#include "wx/imaglist.h"
-#include "wx/icon.h"
-#include "wx/image.h"
-#include "wx/dc.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dc.h"
+ #include "wx/icon.h"
+ #include "wx/image.h"
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxObject)
|| (m_width == 0 && m_height == 0),
_T("invalid bitmap size in wxImageList: this might work ")
_T("on this platform but definitely won't under Windows.") );
-
+
// Mimic behavior of Windows ImageList_Add that automatically breaks up the added
// bitmap into sub-images of the correct size
if (m_width > 0 && bitmap.GetWidth() > m_width && bitmap.GetHeight() >= m_height)
m_width = bitmap.GetWidth();
m_height = bitmap.GetHeight();
}
-
+
return m_images.GetCount() - 1;
}
m_images.Erase( node );
m_images.Insert( next, newBitmap );
}
-
+
if (mask.Ok())
newBitmap->SetMask(new wxMask(mask));