+#endif
+}
+
+bool wxPopupWindow::Show(bool show)
+{
+ if ( !wxWindowMSW::Show(show) )
+ return false;
+
+ if ( show )
+ {
+ // raise to top of z order
+ if (!::SetWindowPos(GetHwnd(), HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE))
+ {
+ wxLogLastError(_T("SetWindowPos"));
+ }
+
+ // and set it as the foreground window so the mouse can be captured
+ ::SetForegroundWindow(GetHwnd());
+ }
+
+ return true;