Don't use wxWindow methods in wx/container.h, move AcceptsFocus()
implementation to containr.cpp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74588
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool DoSetFocus();
// returns whether we should accept focus ourselves or not
- bool AcceptsFocus() const
- { return m_acceptsFocusSelf && m_winParent->CanBeFocused(); }
+ bool AcceptsFocus() const;
// Returns whether we or one of our children accepts focus.
bool AcceptsFocusRecursively() const
return ret;
}
+bool wxControlContainerBase::AcceptsFocus() const
+{
+ return m_acceptsFocusSelf && m_winParent->CanBeFocused();
+}
+
bool wxControlContainerBase::SetFocusToChild()
{
return wxSetFocusToChild(m_winParent, &m_winLastFocused);