X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/537a0880d225ab023024f6f5fc8955666b7641b8..9f7e1cff95db6b856f47b9a104358e50dec509e7:/src/msw/popupwin.cpp diff --git a/src/msw/popupwin.cpp b/src/msw/popupwin.cpp index 78a9a676bf..20f337d99a 100644 --- a/src/msw/popupwin.cpp +++ b/src/msw/popupwin.cpp @@ -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;