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
This commit is contained in:
Robin Dunn
2003-06-16 22:40:11 +00:00
parent f30d4a7421
commit 79d4530dad

View File

@@ -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);
}