extern wxWindowList wxModelessWindows;
extern wxList WXDLLEXPORT wxPendingDelete;
-extern wxChar wxFrameClassName[];
+extern const wxChar *wxFrameClassName;
extern wxMenu *wxCurrentPopupMenu;
// ----------------------------------------------------------------------------
// 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() )
)
{
child->SetFocus();
- return;
+ break;
}
}
}