Have a look at the MFC CListCtrl class