Added the functions GetNumItemsPerPage, GetTopItemIdxToTopOfLastPage, and SetTopItemIdxToTopOfLastPage.