+void wxEvtHandler::AddPendingEvent(wxEvent& event)
+{
+ if ( !m_pendingEvents )
+ m_pendingEvents = new wxList;
+
+ wxEvent *event2 = (wxEvent *)event.Clone();
+
+ m_pendingEvents->Append(event2);
+
+ wxENTER_CRIT_SECT(wxPendingEventsLocker);
+
+ if ( !wxPendingEvents )
+ wxPendingEvents = new wxList;