]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/popupwin.cpp
don't statically link to SetMenuInfo(): it is not present in Win95/NT4
[wxWidgets.git] / src / msw / popupwin.cpp
index 78a9a676bf084e69c0ac7e868c4e87bc70283879..20f337d99a1392c7d1d16e30bf5053d476d41276 100644 (file)
@@ -107,6 +107,9 @@ bool wxPopupWindow::Show(bool show)
         {
             wxLogLastError(_T("SetWindowPos"));
         }
+
+        // and set it as the foreground window so the mouse can be captured
+        ::SetForegroundWindow(GetHwnd());
     }
 
     return true;