m_winParent = winParent;
m_winLastFocused =
+ m_winTmpDefault =
m_winDefault = NULL;
}
if ( !child->GetEventHandler()->ProcessEvent(event) )
{
// everything is simple: just give focus to it
- child->SetFocus();
+ child->SetFocusFromKbd();
m_winLastFocused = child;
}
if ( child == m_winDefault )
m_winDefault = NULL;
+
+ if ( child == m_winTmpDefault )
+ m_winTmpDefault = NULL;
}
// ----------------------------------------------------------------------------
_T("SetFocusToChild() => last child (0x%08x)."),
(*childLastFocused)->GetHandle());
- (*childLastFocused)->SetFocus();
+ (*childLastFocused)->SetFocusFromKbd();
return TRUE;
}
else
child->GetHandle());
*childLastFocused = child; // should be redundant, but it is not
- child->SetFocus();
+ child->SetFocusFromKbd();
return TRUE;
}