// Created: 08.05.02
// RCS-ID: $Id$
// Copyright: (c) 2002 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// License: wxWindows license
+// License: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
#ifndef WX_PRECOMP
#endif //WX_PRECOMP
+#if wxUSE_POPUPWIN
+
#include "wx/popupwin.h"
#include "wx/msw/private.h" // for GetDesktopWindow()
return (WXHWND)::GetDesktopWindow();
}
+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"));
+ }
+ }
+
+ return TRUE;
+}
+
+#endif // #if wxUSE_POPUPWIN
+