From 2a6e411887964a9df0dcad6fa868b436c5928e3c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 16 Oct 2015 03:11:29 +0200 Subject: [PATCH] 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. --- src/msw/listctrl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index e38f336df9..ad5f768129 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -301,6 +301,7 @@ void wxListCtrl::MSWSetExListStyles() #endif LVS_EX_FULLROWSELECT | LVS_EX_SUBITEMIMAGES | + LVS_EX_DOUBLEBUFFER | // 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 // it seems better to enable it by default than disable