Fix redraw glitches in wxMSW wxListCtrl with system theme

It seems that LVS_EX_DOUBLEBUFFER is required for the system theme to work
correctly, otherwise multiple display glitches can be observed by simply
changing the selection in the list.

Closes #17177.
This commit is contained in:
Vadim Zeitlin
2015-10-16 03:11:29 +02:00
parent d49abaaec4
commit 2a6e411887

View File

@@ -301,6 +301,7 @@ void wxListCtrl::MSWSetExListStyles()
#endif #endif
LVS_EX_FULLROWSELECT | LVS_EX_FULLROWSELECT |
LVS_EX_SUBITEMIMAGES | LVS_EX_SUBITEMIMAGES |
LVS_EX_DOUBLEBUFFER |
// normally this should be governed by a style as it's probably not // normally this should be governed by a style as it's probably not
// always appropriate, but we don't have any free styles left and // always appropriate, but we don't have any free styles left and
// it seems better to enable it by default than disable // it seems better to enable it by default than disable