send an extra kill focus event when we're deactivated

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-12-15 18:17:15 +00:00
parent 600683ca05
commit 1383482892

View 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 )