Browse for folder and display contents in list control
-
Hi, I asked earlier about some help with a problem I am having. I have a dialog based application in which has a Browse for directory call. Thats fine, I have that implemented, when the user selects the folder they want my program to scan it returns the folders path as szFolder. I have a list control, m_contentlist, which I want to display the contents of szFolder in (directory selected) Can someone please post code rather than links? That would be very helpful. Thankyou Ashman
-
Hi, I asked earlier about some help with a problem I am having. I have a dialog based application in which has a Browse for directory call. Thats fine, I have that implemented, when the user selects the folder they want my program to scan it returns the folders path as szFolder. I have a list control, m_contentlist, which I want to display the contents of szFolder in (directory selected) Can someone please post code rather than links? That would be very helpful. Thankyou Ashman
Ashman wrote: Can someone please post code rather than links? That would be very helpful. Here's a starting point:
CFileFind ff;
ff.FindFile(szFolder + ???);
while (...)
{
ff.FindNextFile();
}
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow