From 10bd072488691de49910185bea3c7107c77148d1 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 11 Jan 2001 18:22:32 +0000 Subject: [PATCH] Use wxClientDC in header window so we don't clip (because of gtk_paint_box not 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 065aa5d627..a0fdcc1519 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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 ); -- 2.47.2