]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statbox.cpp
Generate wxEVT_KEY_DOWN events for navigation keys in wxMSW wxTreeCtrl.
[wxWidgets.git] / src / msw / statbox.cpp
index 18abded0440ba9160111de6177d57f246037d2a9..0a5b78abd29f011495f93c4486d82dc799fd4061 100644 (file)
@@ -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