]> git.saurik.com Git - wxWidgets.git/commitdiff
send an extra kill focus event when we're deactivated
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Dec 2002 18:17:15 +0000 (18:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Dec 2002 18:17:15 +0000 (18:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/toplevel.cpp

index 3af50fc0826962f2f1c9c8aae2ff45832462d838..0358aafc346d8afa639a5f04d8e64572aa7ed985 100644 (file)
@@ -754,6 +754,12 @@ void wxTopLevelWindowMSW::OnActivate(wxActivateEvent& event)
         // remember the last focused child if it is our child
         m_winLastFocused = FindFocus();
 
+        if ( m_winLastFocused )
+        {
+            // let it know that it doesn't have focus any more
+            m_winLastFocused->HandleKillFocus(NULL);
+        }
+
         // so we NULL it out if it's a child from some other frame
         wxWindow *win = m_winLastFocused;
         while ( win )