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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user