DECLARE_DYNAMIC_CLASS(wxGenericImageList)
};
+#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
+/*
+ * wxImageList has to be a real class or we have problems with
+ * the run-time information.
+ */
+
+class WXDLLEXPORT wxImageList: public wxGenericImageList
+{
+ DECLARE_DYNAMIC_CLASS(wxImageList)
+
+public:
+ wxImageList() {}
+
+ wxImageList( int width, int height, bool mask = TRUE, int initialCount = 1 )
+ : wxGenericImageList(width, height, mask, initialCount)
+ {
+ }
+};
+#endif // !__WXMSW__ || __WIN16__ || __WXUNIVERSAL__
+
#endif // __IMAGELISTH_G__
DECLARE_DYNAMIC_CLASS(wxGenericListCtrl);
};
+#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
+/*
+ * wxListCtrl has to be a real class or we have problems with
+ * the run-time information.
+ */
-#endif // __LISTCTRLH_G__
+class WXDLLEXPORT wxListCtrl: public wxGenericListCtrl
+{
+ DECLARE_DYNAMIC_CLASS(wxListCtrl)
+
+public:
+ wxListCtrl() {}
+
+ wxListCtrl(wxWindow *parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxLC_ICON,
+ const wxValidator &validator = wxDefaultValidator,
+ const wxString &name = "listctrl" )
+ : wxGenericListCtrl(parent, id, pos, size, style, validator, name)
+ {
+ }
+};
+#endif // !__WXMSW__ || __WIN16__ || __WXUNIVERSAL__
-// vi:sts=4:sw=4:et
+#endif // __LISTCTRLH_G__
#ifndef _WX_IMAGLIST_H_BASE_
#define _WX_IMAGLIST_H_BASE_
-#if defined(__WIN32__)
+#if defined(__WIN32__) && !defined(__WXUNIVERSAL__)
#include "wx/msw/imaglist.h"
-#endif
-#include "wx/generic/imaglist.h"
-#if !defined(__WIN32__)
- #define wxImageList wxGenericImageList
- #define sm_classwxImageList sm_classwxGenericImageList
+#else
+ #include "wx/generic/imaglist.h"
#endif
#endif
#if defined(__WIN32__) && !defined(__WXUNIVERSAL__)
#include "wx/msw/listctrl.h"
-#endif
-#include "wx/generic/listctrl.h"
-#if !defined(__WIN32__) || defined(__WXUNIVERSAL__)
- #define wxListCtrl wxGenericListCtrl
- #define sm_classwxListCtrl sm_classwxGenericListCtrl
+#else
+ #include "wx/generic/listctrl.h"
#endif
// ----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxGenericImageList, wxObject)
+#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
+/*
+ * wxImageList has to be a real class or we have problems with
+ * the run-time information.
+ */
+
+IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxGenericImageList)
+#endif
+
wxGenericImageList::wxGenericImageList( int width, int height, bool mask, int initialCount )
{
(void)Create(width, height, mask, initialCount);
EVT_IDLE(wxGenericListCtrl::OnIdle)
END_EVENT_TABLE()
+#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
+/*
+ * wxListCtrl has to be a real class or we have problems with
+ * the run-time information.
+ */
+
+IMPLEMENT_DYNAMIC_CLASS(wxListCtrl, wxGenericListCtrl)
+#endif
+
wxGenericListCtrl::wxGenericListCtrl()
{
m_imageListNormal = (wxGenericImageList *) NULL;