From fef2d7d05b92c5429bc7f0c8195846f733feee46 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sun, 17 Oct 2021 11:37:51 +0200 Subject: [PATCH] Fix wxListCtrl checkbox style when reapplying extended styles Fixes #19263 --- src/msw/listctrl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 593dcf840e..6861baa1f3 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -351,6 +351,10 @@ void wxListCtrl::MSWSetExListStyles() if ( !GetToolTip() ) exStyle |= LVS_EX_LABELTIP; + // include the checkbox style + if ( HasCheckBoxes() ) + exStyle |= LVS_EX_CHECKBOXES; + if ( wxApp::GetComCtl32Version() >= 600 ) { // We must enable double buffering when using the system theme to avoid