This is a mfc homework. If you see this ,you can get help in MFC string and contrl list.