]> git.saurik.com Git - wxWidgets.git/commitdiff
mingw compilation fixes
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 11 Jul 2001 12:28:39 +0000 (12:28 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 11 Jul 2001 12:28:39 +0000 (12:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/evtloop.cpp

index 73d459dac2f9b4c177f5f3db3d4a8768a96e6dc8..ed84e41c760fb58e6f3d700b724c1285a87e635f 100644 (file)
 #include "wx/evtloop.h"
 #include "wx/window.h"
 #include "wx/app.h"
+#include "wx/tooltip.h"
 
 #include "wx/msw/private.h"
 
+#if wxUSE_THREADS
+    // define the array of MSG strutures
+    WX_DECLARE_OBJARRAY(MSG, wxMsgArray);
+    // VS: this is a bit dirty - it duplicates same declaration in app.cpp
+    //     (and there's no WX_DEFINE_OBJARRAY for that reason - it is already
+    //     defined in app.cpp). 
+#endif
+
 // ----------------------------------------------------------------------------
 // wxEventLoopImpl
 // ----------------------------------------------------------------------------
@@ -243,9 +252,9 @@ bool wxEventLoop::Dispatch()
         // leave out WM_COMMAND messages: too dangerous, sometimes
         // the message will be processed twice
         if ( !wxIsWaitingForThread() ||
-                s_currentMsg.message != WM_COMMAND )
+                msg.message != WM_COMMAND )
         {
-            s_aSavedMessages.Add(s_currentMsg);
+            s_aSavedMessages.Add(msg);
         }
 
         return TRUE;