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:
parent
600683ca05
commit
1383482892
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user