It's very easy for a listbox. Do the following:
Create a listbox and create a variable for it, something like m_list.
Give the dialog a title like 'Directory List' or anything else descriptive.
In the OnInitDialog section of the dialog, type this in:
m_list.Dir(0X0000, "*.*");
This will list everything in the current directory.