#include "wx/msw/private.h" // for GetDesktopWindow()
-IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow, wxWindow)
-
// ============================================================================
// implementation
// ============================================================================
{
wxLogLastError(_T("SetWindowPos"));
}
+
+ // and set it as the foreground window so the mouse can be captured
+ ::SetForegroundWindow(GetHwnd());
}
return true;