diff --git a/include/wx/generic/numdlgg.h b/include/wx/generic/numdlgg.h index a5f24a9780..ce9ea55e86 100644 --- a/include/wx/generic/numdlgg.h +++ b/include/wx/generic/numdlgg.h @@ -60,6 +60,7 @@ protected: private: DECLARE_EVENT_TABLE() + DECLARE_DYNAMIC_CLASS(wxNumberEntryDialog) DECLARE_NO_COPY_CLASS(wxNumberEntryDialog) }; diff --git a/src/generic/numdlgg.cpp b/src/generic/numdlgg.cpp index 2cbcc03ac1..e9ef27266a 100644 --- a/src/generic/numdlgg.cpp +++ b/src/generic/numdlgg.cpp @@ -71,6 +71,8 @@ BEGIN_EVENT_TABLE(wxNumberEntryDialog, wxDialog) EVT_BUTTON(wxID_CANCEL, wxNumberEntryDialog::OnCancel) END_EVENT_TABLE() +IMPLEMENT_CLASS(wxNumberEntryDialog, wxDialog) + wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent, const wxString& message, const wxString& prompt,