diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index fff248cd60..a263a8e152 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -502,10 +502,17 @@ void wxListCtrl::SetWindowStyleFlag(long flag) { if ( flag != m_windowStyle ) { + const bool wasInReportView = InReportView(); + wxListCtrlBase::SetWindowStyleFlag(flag); UpdateStyle(); + // if we switched to the report view, set the extended styles for + // it too + if ( !wasInReportView && InReportView() ) + MSWSetExListStyles(); + Refresh(); } }