wxDIB(int width, int height, int depth)
{ Init(); (void)Create(width, height, depth); }
+#ifdef __WXMSW__
// create a DIB from the DDB
wxDIB(const wxBitmap& bmp)
{ Init(); (void)Create(bmp); }
+#endif // __WXMSW__
// create a DIB from the Windows DDB
wxDIB(HBITMAP hbmp)
// same as the corresponding ctors but with return value
bool Create(int width, int height, int depth);
+#ifdef __WXMSW__
bool Create(const wxBitmap& bmp) { return Create(GetHbitmapOf(bmp)); }
+#endif
bool Create(HBITMAP hbmp);
bool Load(const wxString& filename);
wxPalette *wxDIB::CreatePalette() const
{
// GetDIBColorTable not available in eVC3
-#if defined(_WIN32_WCE) && _WIN32_WCE < 400
+#if !defined(__WXMSW__) || defined(_WIN32_WCE) && _WIN32_WCE < 400
return NULL;
#else
wxCHECK_MSG( m_handle, NULL, wxT("wxDIB::CreatePalette(): invalid object") );