Not all ports override SetXXX() methods in their wxWindow class so use the
versions from wxWindowBase which are definitely known to exist. Notice that
the call itself is still virtual so it doesn't matter which base class do we
use.
Closes #12840.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66564
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( !BaseWindowClass::SetForegroundColour(colour) )
return false;
if ( !BaseWindowClass::SetForegroundColour(colour) )
return false;
- DoSetForAllParts(&wxWindow::SetForegroundColour, colour);
+ DoSetForAllParts(&wxWindowBase::SetForegroundColour, colour);
if ( !BaseWindowClass::SetBackgroundColour(colour) )
return false;
if ( !BaseWindowClass::SetBackgroundColour(colour) )
return false;
- DoSetForAllParts(&wxWindow::SetBackgroundColour, colour);
+ DoSetForAllParts(&wxWindowBase::SetBackgroundColour, colour);
if ( !BaseWindowClass::SetFont(font) )
return false;
if ( !BaseWindowClass::SetFont(font) )
return false;
- DoSetForAllParts(&wxWindow::SetFont, font);
+ DoSetForAllParts(&wxWindowBase::SetFont, font);
if ( !BaseWindowClass::SetCursor(cursor) )
return false;
if ( !BaseWindowClass::SetCursor(cursor) )
return false;
- DoSetForAllParts(&wxWindow::SetCursor, cursor);
+ DoSetForAllParts(&wxWindowBase::SetCursor, cursor);
virtual wxWindowList GetCompositeWindowParts() const = 0;
template <class T>
virtual wxWindowList GetCompositeWindowParts() const = 0;
template <class T>
- void DoSetForAllParts(bool (wxWindow::*func)(const T&), const T& arg)
+ void DoSetForAllParts(bool (wxWindowBase::*func)(const T&), const T& arg)
{
// Simply call the setters for all parts of this composite window.
const wxWindowList parts = GetCompositeWindowParts();
{
// Simply call the setters for all parts of this composite window.
const wxWindowList parts = GetCompositeWindowParts();