Fix flicker when resizing columns of report-mode MSW wxListCtrl

Just turn off background erasing to avoid having horrible flicker which
can be seen perfectly well simply by drag-resizing a column in a list
control with non-default background colour.

See https://github.com/wxWidgets/wxWidgets/pull/374
This commit is contained in:
Vadim Zeitlin
2017-12-09 19:05:35 +01:00
parent aa4d51d579
commit 061e6f9a3c
2 changed files with 5 additions and 0 deletions

View File

@@ -442,6 +442,7 @@ wxMSW:
- Fix UTF-32 conversion for non-BMP characters (ARATA Mizuki).
- Use correct parent for the native modal dialogs (Andreas Falkenhahn).
- Fix layout of wxSlider with wxSL_VALUE_LABEL only (gafatoa).
- Fix flicker when resizing columns of report-mode wxListCtrl.
wxOSX/Cocoa:

View File

@@ -334,6 +334,10 @@ void wxListCtrl::MSWSetExListStyles()
// it seems better to enable it by default than disable
LVS_EX_HEADERDRAGDROP
);
// As we use LVS_EX_DOUBLEBUFFER above, we don't need to erase our
// background and doing it only results in flicker.
SetBackgroundStyle(wxBG_STYLE_PAINT);
}
WXDWORD wxListCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const