git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30987
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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)
// 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
// return the background brush to use for this window by quering the parent
// windows via their MSWGetBgBrushForChild() recursively
return m_hasBgCol ? GetBackgroundColour() : wxNullColour;
}
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() )
WXHBRUSH wxWindow::MSWGetBgBrush(WXHDC hDC)
{
for ( wxWindow *win = this; win; win = win->GetParent() )