]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/thread/thread.cpp
Do archive name case conversion for wxMac and wxMotif
[wxWidgets.git] / samples / thread / thread.cpp
index f82f33a5115ab3df2e8eacb6848afc408607d9fc..1040e283d047e0c47aa02e1f8ac814d7ff552710 100644 (file)
@@ -39,7 +39,7 @@
 #endif
 
 class MyThread;
-WX_DEFINE_ARRAY(wxThread *, wxArrayThread);
+WX_DEFINE_ARRAY_NO_PTR(wxThread *, wxArrayThread);
 
 // Define a new application type
 class MyApp : public wxApp
@@ -579,7 +579,7 @@ void MyFrame::OnPauseThread(wxCommandEvent& WXUNUSED(event) )
 }
 
 // set the frame title indicating the current number of threads
-void MyFrame::OnIdle(wxIdleEvent &event)
+void MyFrame::OnIdle(wxIdleEventevent)
 {
     wxCriticalSectionLocker enter(wxGetApp().m_critsect);
 
@@ -600,6 +600,8 @@ void MyFrame::OnIdle(wxIdleEvent &event)
         wxLogStatus(this, wxT("%u threads total, %u running."), nCount, nRunning);
     }
     //else: avoid flicker - don't print anything
+
+    event.Skip();
 }
 
 void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) )