X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..d6d857b12404a9e50bebdd8d143a547b72332f2d:/src/msw/statbox.cpp diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index 18abded044..0a5b78abd2 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -365,7 +365,7 @@ void wxStaticBox::PaintBackground(wxDC& dc, const RECT& rc) // see http://groups.google.com/groups?selm=4252E932.3080801%40able.es wxWindow *parent = GetParent(); wxMSWDCImpl *impl = (wxMSWDCImpl*) dc.GetImpl(); - HBRUSH hbr = (HBRUSH)parent->MSWGetBgBrush(impl->GetHDC(), GetHWND()); + HBRUSH hbr = (HBRUSH)parent->MSWGetBgBrush(impl->GetHDC(), this); // if there is no special brush for painting this control, just use the // solid background colour