]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/popupwin.cpp
DeleteFunction argument should be non-const since it
[wxWidgets.git] / src / msw / popupwin.cpp
index 78a9a676bf084e69c0ac7e868c4e87bc70283879..b4586d291b83598e7115b9e37ad3b1755160bf01 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "popup.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -107,6 +103,9 @@ bool wxPopupWindow::Show(bool show)
         {
             wxLogLastError(_T("SetWindowPos"));
         }
         {
             wxLogLastError(_T("SetWindowPos"));
         }
+
+        // and set it as the foreground window so the mouse can be captured
+        ::SetForegroundWindow(GetHwnd());
     }
 
     return true;
     }
 
     return true;