X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ffa221c5897a4881377fd35181a5ea18c4dc04b..53faea431638ee5c0013a2c888215c751fa6437b:/src/msw/frame.cpp diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 704d53784a..1b2f3db2e9 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -559,6 +559,15 @@ bool wxFrame::MSWCreate(int id, wxWindow *parent, const wxChar *wclass, wxWindow // subwindow found. void wxFrame::OnActivate(wxActivateEvent& event) { + if ( !event.GetActive() ) + { + event.Skip(); + + return; + } + + wxLogTrace(_T("focus"), _T("wxFrame %08x activated."), m_hWnd); + for ( wxWindowList::Node *node = GetChildren().GetFirst(); node; node = node->GetNext() ) @@ -579,7 +588,7 @@ void wxFrame::OnActivate(wxActivateEvent& event) ) { child->SetFocus(); - return; + break; } } }