You can't hide the items in a wxListBox
or wxCheckListBox
. To have this sort of dynamic control over the items appearing in the control you need to use wxListCtrl
in virtual mode.
However it's not usually really a problem to delete some items from a wxListBox
and then insert them back (or, even simpler, store all the items, delete some of them from the control and then, to revert, clear the control and restore all the initially stored items).