diff --git a/include/wx/datectrl.h b/include/wx/datectrl.h index 397806bdd9..81f6c0d62e 100644 --- a/include/wx/datectrl.h +++ b/include/wx/datectrl.h @@ -102,8 +102,7 @@ public: } private: - DECLARE_DYNAMIC_CLASS(wxDatePickerCtrl) - DECLARE_NO_COPY_CLASS(wxDatePickerCtrl) + DECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl) }; #endif diff --git a/include/wx/msw/datectrl.h b/include/wx/msw/datectrl.h index 4e891c5b71..6ca2c22b66 100644 --- a/include/wx/msw/datectrl.h +++ b/include/wx/msw/datectrl.h @@ -61,7 +61,7 @@ protected: virtual wxSize DoGetBestSize() const; - DECLARE_NO_COPY_CLASS(wxDatePickerCtrl) + DECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl) }; #endif // _WX_MSW_DATECTRL_H_ diff --git a/include/wx/palmos/datectrl.h b/include/wx/palmos/datectrl.h index d6e935fe35..4b4d086135 100644 --- a/include/wx/palmos/datectrl.h +++ b/include/wx/palmos/datectrl.h @@ -65,7 +65,8 @@ private: void Init() { m_dt = wxDateTime::Today(); } - DECLARE_NO_COPY_CLASS(wxDatePickerCtrl) + + DECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl) }; #endif // _WX_PALMOS_DATECTRL_H_ diff --git a/src/msw/datectrl.cpp b/src/msw/datectrl.cpp index 683c359077..5dc3929b53 100644 --- a/src/msw/datectrl.cpp +++ b/src/msw/datectrl.cpp @@ -58,6 +58,8 @@ typedef struct tagNMDATETIMECHANGE #define DateTime_SetSystemtime DateTime_SetSystemTime #endif +IMPLEMENT_DYNAMIC_CLASS(wxDatePickerCtrl, wxControl) + // ============================================================================ // implementation // ============================================================================ diff --git a/src/palmos/datectrl.cpp b/src/palmos/datectrl.cpp index d64848beca..79f890156c 100644 --- a/src/palmos/datectrl.cpp +++ b/src/palmos/datectrl.cpp @@ -36,6 +36,8 @@ #define _WX_DEFINE_DATE_EVENTS_ #include "wx/dateevt.h" +IMPLEMENT_DYNAMIC_CLASS(wxDatePickerCtrl, wxControl) + // ============================================================================ // implementation // ============================================================================