Fix some wxMotif build warnings about deprecated methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -591,10 +591,11 @@ void wxFrame::OnActivate(wxActivateEvent& event)
|
||||
if (!event.GetActive())
|
||||
return;
|
||||
|
||||
for(wxNode *node = GetChildren().First(); node; node = node->Next())
|
||||
for(wxWindowList::Node *node = GetChildren().GetFirst(); node;
|
||||
node = node->GetNext())
|
||||
{
|
||||
// Find a child that's a subwindow, but not a dialog box.
|
||||
wxWindow *child = (wxWindow *)node->Data();
|
||||
wxWindow *child = node->GetData();
|
||||
if (!child->IsTopLevel())
|
||||
{
|
||||
child->SetFocus();
|
||||
|
Reference in New Issue
Block a user