- if (ci->IsKindOf(CLASSINFO(wxEvent)) && wxString(ci->GetClassName()) != "wxEvent")
- {
- if (!ci->IsDynamic())
- wxLogWarning("The event class '%s' should have a DECLARE_DYNAMIC_CLASS macro!",
- ci->GetClassName());
-
- // yes; test if it implements Clone() correctly
- wxEvent* test = dynamic_cast<wxEvent*>(ci->CreateObject());
- wxASSERT_MSG(test, "The event class should have a DECLARE_DYNAMIC_CLASS macro!");