]> git.saurik.com Git - wxWidgets.git/commitdiff
wxMSW compilation fix for wxCompositeWindow.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Jan 2011 11:33:19 +0000 (11:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Jan 2011 11:33:19 +0000 (11:33 +0000)
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

include/wx/compositewin.h

index f5110ba9b970f21e791166cc328dab8865e0860f..a4477e03f2a5f96600e5f13a7b7908747eb92f05 100644 (file)
@@ -49,7 +49,7 @@ public:
         if ( !BaseWindowClass::SetForegroundColour(colour) )
             return false;
 
-        DoSetForAllParts(&wxWindow::SetForegroundColour, colour);
+        DoSetForAllParts(&wxWindowBase::SetForegroundColour, colour);
 
         return true;
     }
@@ -59,7 +59,7 @@ public:
         if ( !BaseWindowClass::SetBackgroundColour(colour) )
             return false;
 
-        DoSetForAllParts(&wxWindow::SetBackgroundColour, colour);
+        DoSetForAllParts(&wxWindowBase::SetBackgroundColour, colour);
 
         return true;
     }
@@ -69,7 +69,7 @@ public:
         if ( !BaseWindowClass::SetFont(font) )
             return false;
 
-        DoSetForAllParts(&wxWindow::SetFont, font);
+        DoSetForAllParts(&wxWindowBase::SetFont, font);
 
         return true;
     }
@@ -79,7 +79,7 @@ public:
         if ( !BaseWindowClass::SetCursor(cursor) )
             return false;
 
-        DoSetForAllParts(&wxWindow::SetCursor, cursor);
+        DoSetForAllParts(&wxWindowBase::SetCursor, cursor);
 
         return true;
     }
@@ -90,7 +90,7 @@ private:
     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();