Do nothing in wxListCtrl::SetDoubleBuffered() in wxMSW
Setting WS_EX_COMPOSITED, as the base class version does, just results in visual artefacts and is useless, as we turn on LVS_EX_DOUBLEBUFFER already, if it's supported, anyhow. So don't break the display if people call SetDoubleBuffered() in the mistaken belief that it does something useful in this case.
This commit is contained in:
@@ -466,6 +466,17 @@ void wxListCtrl::OnDPIChanged(wxDPIChangedEvent &event)
|
||||
}
|
||||
}
|
||||
|
||||
bool wxListCtrl::IsDoubleBuffered() const
|
||||
{
|
||||
// LVS_EX_DOUBLEBUFFER is turned on for comctl32 v6+.
|
||||
return wxApp::GetComCtl32Version() >= 600;
|
||||
}
|
||||
|
||||
void wxListCtrl::SetDoubleBuffered(bool WXUNUSED(on))
|
||||
{
|
||||
// Nothing to do, it's always enabled if supported.
|
||||
}
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
// Deprecated
|
||||
void wxListCtrl::UpdateStyle()
|
||||
|
Reference in New Issue
Block a user