+bool wxBitmap::CreateFromXpm(
+ const char** ppData
+)
+{
+#if wxUSE_IMAGE && wxUSE_XPM
+ Init();
+
+ wxCHECK_MSG(ppData != NULL, FALSE, wxT("invalid bitmap data"))
+
+ wxXPMDecoder vDecoder;
+ wxImage vImg = vDecoder.ReadData(ppData);
+
+ wxCHECK_MSG(vImg.Ok(), FALSE, wxT("invalid bitmap data"))
+
+ *this = wxBitmap(vImg);
+ return TRUE;
+#else
+ return FALSE;
+#endif
+} // end of wxBitmap::CreateFromXpm
+