Because that is what you asked it to do ;). You can use the CFileFind class to find files from a pattern (*.mp3 for example). After that you can insert the found files one by one in the listcontrol.