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. implementing file browsing facility using MFC

implementing file browsing facility using MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsonquestion
5 Posts 4 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.
  • K Offline
    K Offline
    ku19832001
    wrote on last edited by
    #1

    Hello All i want to implement the file browsing facility as in windows when some one presses "open". My application also has the same requirement where if somebody presses a browse button, the window box opens n the user can browse through various files n drives to select the desired file. Please suggest me a way of implementing this. Is there a api for making this facility??. thanks kunal s patel

    M L 2 Replies Last reply
    0
    • K ku19832001

      Hello All i want to implement the file browsing facility as in windows when some one presses "open". My application also has the same requirement where if somebody presses a browse button, the window box opens n the user can browse through various files n drives to select the desired file. Please suggest me a way of implementing this. Is there a api for making this facility??. thanks kunal s patel

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Check out CFileDialog

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer

      S 1 Reply Last reply
      0
      • M Michael Dunn

        Check out CFileDialog

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer

        S Offline
        S Offline
        Sarath C
        wrote on last edited by
        #3

        Hi Mike, Hope you saw the save attachments dialog in Outlook 2000 or 2003. Using the file dialog, it is possible to select a folder. How we could accomplish this? (i.e hiding all files and Allow to Select empty file!) SaRath.
        "Do Next Thing..." My Blog | Understanding State Pattern in C++

        M 1 Reply Last reply
        0
        • S Sarath C

          Hi Mike, Hope you saw the save attachments dialog in Outlook 2000 or 2003. Using the file dialog, it is possible to select a folder. How we could accomplish this? (i.e hiding all files and Allow to Select empty file!) SaRath.
          "Do Next Thing..." My Blog | Understanding State Pattern in C++

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          SaRath C wrote:

          Using the file dialog, it is possible to select a folder.

          No, there's a different common dialog for selecting a directory. I don't think MFC has a wrapper class for it, but check out SHBrowseForFolder() or the many articles here at CP that have wrappers.

          --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer

          1 Reply Last reply
          0
          • K ku19832001

            Hello All i want to implement the file browsing facility as in windows when some one presses "open". My application also has the same requirement where if somebody presses a browse button, the window box opens n the user can browse through various files n drives to select the desired file. Please suggest me a way of implementing this. Is there a api for making this facility??. thanks kunal s patel

            L Offline
            L Offline
            laniakea development
            wrote on last edited by
            #5

            Hi! In the book: Using Visual C++ 6, by Jonathan Bates, Timothy Tompkins, You can find the complete explanation what to do, I think even that there is a complete example how to create such an application! The main thing is how to recognize the file attributes, which can be either a Directory or an ordinary file. Then, You have to find which is the "first of" in the current directory (as You iterate through the tree), and which is the "next one". Using the object list, You can pack these file in the structure, and finally, add the images in the directory tree, which is also explained how to create. Best regards, D. Senic -- modified at 2:23 Monday 26th June, 2006

            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