]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/app.cpp
WinCE build fix.
[wxWidgets.git] / src / msw / app.cpp
index 61218c71902647361d85cde2696201497e7cb760..59b929c7ce47569275d3c4fb122bb7257a41e3cc 100644 (file)
@@ -234,14 +234,20 @@ 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
-               QS_ALLINPUT |        // return as soon as there are any events
-               QS_ALLPOSTMESSAGE
+               wakeMask
              );
 }