]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxClientDC in header window so we don't clip (because of gtk_paint_box not
authorJulian Smart <julian@anthemion.co.uk>
Thu, 11 Jan 2001 18:22:32 +0000 (18:22 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 11 Jan 2001 18:22:32 +0000 (18:22 +0000)
being clippable). This cures the header refresh problem.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 065aa5d627d3c3fa012d87db85d81ff875bdca47..a0fdcc15196b642398be8a19ed460123b7edfc69 100644 (file)
@@ -1249,7 +1249,12 @@ void wxListHeaderWindow::AdjustDC(wxDC& dc)
 
 void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
 {
+#ifdef __WXGTK__
+    wxClientDC dc( this );
+#else
     wxPaintDC dc( this );
+#endif
+
     PrepareDC( dc );
     AdjustDC( dc );