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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.