X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b678698047ca224e98952b5a5bd81f650becc51..5dcf05ae082a2da39102dec13ab3ad4c483221c8:/src/common/event.cpp diff --git a/src/common/event.cpp b/src/common/event.cpp index 11d0de9e51..402ee199c2 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -35,6 +35,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxEvtHandler, wxObject) IMPLEMENT_ABSTRACT_CLASS(wxEvent, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxCommandEvent, wxEvent) +IMPLEMENT_DYNAMIC_CLASS(wxNotifyEvent, wxCommandEvent) IMPLEMENT_DYNAMIC_CLASS(wxScrollEvent, wxCommandEvent) IMPLEMENT_DYNAMIC_CLASS(wxMouseEvent, wxEvent) IMPLEMENT_DYNAMIC_CLASS(wxKeyEvent, wxEvent) @@ -371,7 +372,9 @@ bool wxEvtHandler::SearchEventTable(wxEventTable& table, wxEvent& event) int i = 0; int commandId = event.GetId(); - while (table.entries[i].m_fn) + // BC++ doesn't like while (table.entries[i].m_fn) + + while (table.entries[i].m_fn != 0L) { if ((event.GetEventType() == table.entries[i].m_eventType) && (table.entries[i].m_id == -1 || // Match, if event spec says any id will do (id == -1)