implementation should use DoFindFocus

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-09-29 15:30:09 +00:00
parent 0fe0275981
commit 66370e3854

View File

@@ -3305,7 +3305,7 @@ void wxListMainWindow::SetFocus()
// focus to the panel from wxListTextCtrl because the text control should
// disappear when the user clicks outside it.
wxWindow *oldFocus = FindFocus();
wxWindow *oldFocus = DoFindFocus();
if ( oldFocus && oldFocus->GetParent() == this )
{
@@ -5353,7 +5353,7 @@ void wxGenericListCtrl::SetFocus()
{
/* The test in window.cpp fails as we are a composite
window, so it checks against "this", but not m_mainWin. */
if ( FindFocus() != this )
if ( DoFindFocus() != this )
m_mainWin->SetFocus();
}