From b39c79cb4a9449f7713f86e7481b4f4676bf4d19 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sat, 28 Sep 2019 22:44:58 +0200 Subject: [PATCH] Set column count to 1 in wxListCtrl with list view --- src/msw/listctrl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index d0d9b9d36b..ddb156bc38 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -320,6 +320,9 @@ bool wxListCtrl::Create(wxWindow *parent, if ( InReportView() ) MSWSetExListStyles(); + if ( HasFlag(wxLC_LIST) ) + m_colCount = 1; + return true; }