]> git.saurik.com Git - wxWidgets.git/commitdiff
(blind) wxUniv compilation fix: define the method using wxWindow out of line, i.e...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 13 Dec 2004 19:42:35 +0000 (19:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 13 Dec 2004 19:42:35 +0000 (19:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/window.h
src/msw/window.cpp

index d445002683f33cdd222494a3acf56d0e84254f42..0aae98ca6d2954961dc484ef305c29385a640503 100644 (file)
@@ -394,10 +394,7 @@ public:
     // normally just calls MSWGetBgBrushForChild() on the parent window but may
     // be overridden if the default background brush is not suitable for some
     // reason (e.g. wxStaticBox uses MSWGetSolidBgBrushForChild() instead)
-    virtual WXHBRUSH MSWGetBgBrushForSelf(wxWindow *parent, WXHDC hDC)
-    {
-        return parent->MSWGetBgBrushForChild(hDC, this);
-    }
+    virtual WXHBRUSH MSWGetBgBrushForSelf(wxWindow *parent, WXHDC hDC);
 
     // return the background brush to use for this window by quering the parent
     // windows via their MSWGetBgBrushForChild() recursively
index ce28f74fa4b9a0e3b7e6fb3dd77bec452f2ac8a9..76e21be1cc3be978459457df78d53ca9bc216a9e 100644 (file)
@@ -4049,6 +4049,11 @@ wxColour wxWindowMSW::MSWGetBgColourForChild(wxWindow * WXUNUSED(child))
     return m_hasBgCol ? GetBackgroundColour() : wxNullColour;
 }
 
+WXHBRUSH wxWindowMSW::MSWGetBgBrushForSelf(wxWindow *parent, WXHDC hDC)
+{
+    return parent->MSWGetBgBrushForChild(hDC, this);
+}
+
 WXHBRUSH wxWindow::MSWGetBgBrush(WXHDC hDC)
 {
     for ( wxWindow *win = this; win; win = win->GetParent() )