diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 2a76e65ebb..8b7cc3f70a 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -617,27 +617,6 @@ bool wxTopLevelWindowMSW::Show(bool show) if (frame && frame->GetMenuBar()) frame->GetMenuBar()->AddAdornments(GetWindowStyleFlag()); #endif - - if ( show ) - { - ::BringWindowToTop(GetHwnd()); - - wxActivateEvent event(wxEVT_ACTIVATE, true, m_windowId); - event.SetEventObject( this ); - GetEventHandler()->ProcessEvent(event); - } - else // hide - { - // Try to highlight the correct window (the parent) - if ( GetParent() ) - { - HWND hWndParent = GetHwndOf(GetParent()); - if (hWndParent) - ::BringWindowToTop(hWndParent); - } - } - - return true; } // ----------------------------------------------------------------------------