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:
@@ -442,6 +442,7 @@ wxMSW:
|
|||||||
- Fix UTF-32 conversion for non-BMP characters (ARATA Mizuki).
|
- Fix UTF-32 conversion for non-BMP characters (ARATA Mizuki).
|
||||||
- Use correct parent for the native modal dialogs (Andreas Falkenhahn).
|
- Use correct parent for the native modal dialogs (Andreas Falkenhahn).
|
||||||
- Fix layout of wxSlider with wxSL_VALUE_LABEL only (gafatoa).
|
- Fix layout of wxSlider with wxSL_VALUE_LABEL only (gafatoa).
|
||||||
|
- Fix flicker when resizing columns of report-mode wxListCtrl.
|
||||||
|
|
||||||
wxOSX/Cocoa:
|
wxOSX/Cocoa:
|
||||||
|
|
||||||
|
@@ -334,6 +334,10 @@ void wxListCtrl::MSWSetExListStyles()
|
|||||||
// it seems better to enable it by default than disable
|
// it seems better to enable it by default than disable
|
||||||
LVS_EX_HEADERDRAGDROP
|
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
|
WXDWORD wxListCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const
|
||||||
|
Reference in New Issue
Block a user