From: Julian Smart Date: Thu, 11 Jan 2001 18:22:32 +0000 (+0000) Subject: Use wxClientDC in header window so we don't clip (because of gtk_paint_box not X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/10bd072488691de49910185bea3c7107c77148d1 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 --- 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 );