#endif // WX_PRECOMP
#include "wx/os2/private.h"
-
#include "wx/app.h"
-
+#include "wx/xpmhand.h"
#include "wx/os2/gdiimage.h"
// ----------------------------------------------------------------------------
#if !USE_SHARED_LIBRARIES
IMPLEMENT_DYNAMIC_CLASS(wxBMPFileHandler, wxBitmapHandler)
IMPLEMENT_DYNAMIC_CLASS(wxBMPResourceHandler, wxBitmapHandler)
- IMPLEMENT_DYNAMIC_CLASS(wxICOFileHandler, wxGDIImageHandler)
- IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler, wxGDIImageHandler)
+ IMPLEMENT_DYNAMIC_CLASS(wxICOFileHandler, wxObject)
+ IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler, wxObject)
#endif
// ----------------------------------------------------------------------------
wxNode* pNext = pNode->Next();
delete pHandler;
+#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
delete pNode;
+#endif
pNode = pNext;
}
}
AddHandler(new wxBMPResourceHandler);
AddHandler(new wxBMPFileHandler);
- // Not added by default: include xpmhand.h in your app
- // and call these in your wxApp::OnInit.
- // AddHandler(new wxXPMFileHandler);
- // AddHandler(new wxXPMDataHandler);
+#if wxUSE_XPM_IN_OS2
+ AddHandler(new wxXPMFileHandler);
+ AddHandler(new wxXPMDataHandler);
+#endif
AddHandler(new wxICOResourceHandler);
AddHandler(new wxICOFileHandler);