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:
Mattia Barbon
2003-01-18 13:01:17 +00:00
parent 52c71b808f
commit fd304d989b
11 changed files with 63 additions and 46 deletions

View File

@@ -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();