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:
@@ -360,6 +360,11 @@ public:
|
||||
// Necessary for drawing hrules and vrules, if specified
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
|
||||
// Override SetDoubleBuffered() to do nothing, its implementation in the
|
||||
// base class is incompatible with the double buffering done by this native
|
||||
// control.
|
||||
virtual bool IsDoubleBuffered() const;
|
||||
virtual void SetDoubleBuffered(bool on);
|
||||
|
||||
virtual bool ShouldInheritColours() const wxOVERRIDE { return false; }
|
||||
|
||||
|
Reference in New Issue
Block a user