From: Vadim Zeitlin <vadim@wxwidgets.org> Date: Sun, 10 Apr 2005 22:12:39 +0000 (+0000) Subject: fixed MSWGetBgBrush() call, it needs a HWND and not wxWindow * now X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bcb8ba61c374af7570611514e1d5b3f961ae7559 fixed MSWGetBgBrush() call, it needs a HWND and not wxWindow * now git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index 9a08377074..2fbd1acfeb 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -324,7 +324,7 @@ void wxStaticBox::PaintBackground(wxDC& dc, const RECT& rc) // 3. this is backwards compatible behaviour and some people rely on it, // see http://groups.google.com/groups?selm=4252E932.3080801%40able.es wxWindow *parent = GetParent(); - HBRUSH hbr = (HBRUSH)parent->MSWGetBgBrush(dc.GetHDC(), this); + HBRUSH hbr = (HBRUSH)parent->MSWGetBgBrush(dc.GetHDC(), GetHWND()); // if there is no special brush for painting this control, just use the // solid background colour