wxDIB can now be used with wxGTK under Windows, i.e. when not using wxMSW
version of wxBitmap but it can't be created from wxBitmap then as it doesn't
have a corresponding HBITMAP.
Simply disable this functionality when not using wxMSW.
Closes #14414.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71798
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxDIB(int width, int height, int depth)
{ Init(); (void)Create(width, height, depth); }
wxDIB(int width, int height, int depth)
{ Init(); (void)Create(width, height, depth); }
// create a DIB from the DDB
wxDIB(const wxBitmap& bmp)
{ Init(); (void)Create(bmp); }
// create a DIB from the DDB
wxDIB(const wxBitmap& bmp)
{ Init(); (void)Create(bmp); }
// create a DIB from the Windows DDB
wxDIB(HBITMAP hbmp)
// 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);
// same as the corresponding ctors but with return value
bool Create(int width, int height, int depth);
bool Create(const wxBitmap& bmp) { return Create(GetHbitmapOf(bmp)); }
bool Create(const wxBitmap& bmp) { return Create(GetHbitmapOf(bmp)); }
bool Create(HBITMAP hbmp);
bool Load(const wxString& filename);
bool Create(HBITMAP hbmp);
bool Load(const wxString& filename);
wxPalette *wxDIB::CreatePalette() const
{
// GetDIBColorTable not available in eVC3
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") );
return NULL;
#else
wxCHECK_MSG( m_handle, NULL, wxT("wxDIB::CreatePalette(): invalid object") );