]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed MSWGetBgBrush() call, it needs a HWND and not wxWindow * now
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Apr 2005 22:12:39 +0000 (22:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Apr 2005 22:12:39 +0000 (22:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statbox.cpp

index 9a0837707478d38fed19afa54487c1f9eccd3516..2fbd1acfebde47272524e56f2c5312cb0ab89100 100644 (file)
@@ -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