From: Vadim Zeitlin Date: Mon, 13 Dec 2004 19:42:35 +0000 (+0000) Subject: (blind) wxUniv compilation fix: define the method using wxWindow out of line, i.e... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bdd1a35ddc2523d4d6359fb31653b36c70c442d4 (blind) wxUniv compilation fix: define the method using wxWindow out of line, i.e. after wxWindow is defined git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/window.h b/include/wx/msw/window.h index d445002683..0aae98ca6d 100644 --- a/include/wx/msw/window.h +++ b/include/wx/msw/window.h @@ -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 diff --git a/src/msw/window.cpp b/src/msw/window.cpp index ce28f74fa4..76e21be1cc 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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() )