Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Browse for folder and display contents in list control

Browse for folder and display contents in list control

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ashman
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • A 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

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups