A button or hotkey which runs Select HIDEUNSEL NOPATTERN will hide everything that isn't checked/selected. (If in checkbox mode, it only considers what is checked. Otherwise it only considers what is selected.)
Use HIDESEL if you want to hide what is checked/selected instead.
You can revert to showing everything using Folder > Clear Local Name Filters near the top-right of the default toolbars.