]> git.saurik.com Git - wxWidgets.git/commitdiff
Make QS_ALLPOSTMESSAGE available everywhere regardless SDK limitations.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 13 Feb 2007 16:30:53 +0000 (16:30 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 13 Feb 2007 16:30:53 +0000 (16:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/missing.h
src/msw/app.cpp
src/msw/thread.cpp

index f2424edc7284a21f857b04e4efd9ea0934264dff..89bcfa15c8b99988bc2938342231ead44e63f9b2 100644 (file)
 #define LWA_ALPHA 2
 #endif
 
+#ifndef QS_ALLPOSTMESSAGE
+#define QS_ALLPOSTMESSAGE 0
+#endif
+
 /*
  * The following are required for VC++ 5 when the PSDK is not available.
  */
index 59b929c7ce47569275d3c4fb122bb7257a41e3cc..a51804288926df98094e84a1b56d818bb2edf8bc 100644 (file)
 #include <string.h>
 #include <ctype.h>
 
-// For MB_TASKMODAL
-#ifdef __WXWINCE__
-#include "wx/msw/wince/missing.h"
-#endif
+#include "wx/msw/missing.h"
 
 // instead of including <shlwapi.h> which is not part of the core SDK and not
 // shipped at all with other compilers, we always define the parts of it we
@@ -234,20 +231,14 @@ DWORD wxGUIAppTraits::WaitForThread(WXHANDLE hThread)
     if ( !wxEventLoop::GetActive() )
         return DoSimpleWaitForThread(hThread);
 
-    const DWORD wakeMask =
-               QS_ALLINPUT          // return as soon as there are any events
-#if !defined(__WXWINCE__)
-               | QS_ALLPOSTMESSAGE
-#endif
-               ;
-
     return ::MsgWaitForMultipleObjects
              (
                1,                   // number of objects to wait for
                (HANDLE *)&hThread,  // the objects
                false,               // wait for any objects, not all
                INFINITE,            // no timeout
-               wakeMask
+               QS_ALLINPUT |        // return as soon as there are any events
+               QS_ALLPOSTMESSAGE
              );
 }
 
index 1aebef47565dddbf212cdbce532fbf7c45ce9327..74ab15f4c9baa034640261a938e3b78cc0709a92 100644 (file)
@@ -752,9 +752,6 @@ wxThreadInternal::WaitForTerminate(wxCriticalSection& cs,
             }
         }
 
-#if !defined(QS_ALLPOSTMESSAGE)
-#define QS_ALLPOSTMESSAGE 0
-#endif
         wxAppTraits *traits = wxTheApp ? wxTheApp->GetTraits() : NULL;
         if ( traits )
         {