]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove fudges in Show: 1) Do not force a window to top when it is shown 2) Remove...
authorKevin Hock <hockkn@yahoo.com>
Tue, 8 Nov 2005 14:41:09 +0000 (14:41 +0000)
committerKevin Hock <hockkn@yahoo.com>
Tue, 8 Nov 2005 14:41:09 +0000 (14:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/toplevel.cpp

index 2a76e65ebb1fd5a4c275ed39abfa5b35f7b97911..8b7cc3f70ade63192aa6cceaba6d84d2d5803052 100644 (file)
@@ -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;
 }
 
 // ----------------------------------------------------------------------------