diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 348d6487ba..dfc8128eb6 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1219,8 +1219,8 @@ bool wxListCtrl::HasCheckboxes() const bool wxListCtrl::EnableCheckboxes(bool enable) { - LPARAM newStyle = enable ? LVS_EX_CHECKBOXES : 0; - ListView_SetExtendedListViewStyleEx(GetHwnd(), LVS_EX_CHECKBOXES, newStyle); + (void)ListView_SetExtendedListViewStyleEx(GetHwnd(), LVS_EX_CHECKBOXES, + enable ? LVS_EX_CHECKBOXES : 0); return true; }