From 79d4530dadfc7c762b0f8543e9036ce08328d7ad Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 16 Jun 2003 22:40:11 +0000 Subject: [PATCH] Fix for wxPopupWindows not being raised to the top by default git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 61cd0282a0..dfc3f673dc 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -58,6 +58,10 @@ #include "wx/dnd.h" #endif +#if wxUSE_POPUPWIN +#include "wx/popupwin.h" +#endif + #include "wx/menuitem.h" #include "wx/log.h" @@ -570,7 +574,11 @@ bool wxWindowMSW::Show(bool show) int cshow = show ? SW_SHOW : SW_HIDE; ::ShowWindow(hWnd, cshow); - if ( show && IsTopLevel() ) + if ( show && (IsTopLevel() +#if wxUSE_POPUPWIN + || IsKindOf(CLASSINFO(wxPopupWindow))) +#endif + ) { wxBringWindowToTop(hWnd); }