]> git.saurik.com Git - wxWidgets.git/commitdiff
removed wxMsgArray definition (now in evtloop.cpp) and OnIdle() sempaphore (shouldn...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Sep 2003 23:37:07 +0000 (23:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Sep 2003 23:37:07 +0000 (23:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/app.cpp

index 1176d193a3a1c66d97e7d8b565b4803bea01d7fb..2b69e913004dfc9dd2431da74cb3505cca1f3dcf 100644 (file)
 
 #include "wx/msw/private.h"
 
-#if wxUSE_THREADS
-    #include "wx/thread.h"
-
-    // define the array of MSG strutures
-    WX_DECLARE_OBJARRAY(MSG, wxMsgArray);
-
-    #include "wx/arrimpl.cpp"
-
-    WX_DEFINE_OBJARRAY(wxMsgArray);
-#endif // wxUSE_THREADS
-
 #if wxUSE_TOOLTIPS
     #include "wx/tooltip.h"
 #endif // wxUSE_TOOLTIPS
@@ -568,22 +557,8 @@ bool wxApp::Initialized()
 #endif
 }
 
-// this is a temporary hack and will be replaced by using wxEventLoop in the
-// future
-//
-// it is needed to allow other event loops (currently only one: the modal
-// dialog one) to reset the OnIdle() semaphore because otherwise OnIdle()
-// wouldn't do anything while a modal dialog shown from OnIdle() call is shown.
-bool wxIsInOnIdleFlag = FALSE;
-
 void wxApp::OnIdle(wxIdleEvent& event)
 {
-    // Avoid recursion (via ProcessEvent default case)
-    if ( wxIsInOnIdleFlag )
-        return;
-
-    wxIsInOnIdleFlag = TRUE;
-
     wxAppBase::OnIdle(event);
 
 #if wxUSE_DC_CACHEING
@@ -593,8 +568,6 @@ void wxApp::OnIdle(wxIdleEvent& event)
     if (!::GetKeyState(MK_LBUTTON) && !::GetKeyState(MK_MBUTTON) && !::GetKeyState(MK_RBUTTON))
         wxDC::ClearCache();
 #endif // wxUSE_DC_CACHEING
-
-    wxIsInOnIdleFlag = FALSE;
 }
 
 void wxApp::WakeUpIdle()