return Create(bits, wxBITMAP_TYPE_XPM_DATA, 0, 0, 0);
}
+bool wxBitmap::CopyFromIcon(const wxIcon& icon)
+{
+ *this = icon;
+ return TRUE;
+}
+
bool wxBitmap::Create(int w, int h, int d)
{
UnRef();
wxBitmapHandler *handler = FindHandler(type);
if ( handler == NULL ) {
- wxLogWarning("no data bitmap handler for type %d defined.", type);
+ wxLogWarning("no data bitmap handler for type %ld defined.", type);
return FALSE;
}