Compilation fix for PCH-less build after r74586.
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
This commit is contained in:
@@ -76,8 +76,7 @@ public:
|
|||||||
bool DoSetFocus();
|
bool DoSetFocus();
|
||||||
|
|
||||||
// returns whether we should accept focus ourselves or not
|
// returns whether we should accept focus ourselves or not
|
||||||
bool AcceptsFocus() const
|
bool AcceptsFocus() const;
|
||||||
{ return m_acceptsFocusSelf && m_winParent->CanBeFocused(); }
|
|
||||||
|
|
||||||
// Returns whether we or one of our children accepts focus.
|
// Returns whether we or one of our children accepts focus.
|
||||||
bool AcceptsFocusRecursively() const
|
bool AcceptsFocusRecursively() const
|
||||||
|
@@ -153,6 +153,11 @@ bool wxControlContainerBase::DoSetFocus()
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxControlContainerBase::AcceptsFocus() const
|
||||||
|
{
|
||||||
|
return m_acceptsFocusSelf && m_winParent->CanBeFocused();
|
||||||
|
}
|
||||||
|
|
||||||
bool wxControlContainerBase::SetFocusToChild()
|
bool wxControlContainerBase::SetFocusToChild()
|
||||||
{
|
{
|
||||||
return wxSetFocusToChild(m_winParent, &m_winLastFocused);
|
return wxSetFocusToChild(m_winParent, &m_winLastFocused);
|
||||||
|
Reference in New Issue
Block a user