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 new folder path

Browse for folder new folder path

Scheduled Pinned Locked Moved C / C++ / MFC
questiondata-structures
6 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.
  • R Offline
    R Offline
    Royce Fickling 0
    wrote on last edited by
    #1

    Hi, I am using the Browse For Folder dialog to allow selection of an existing folder or the creation of new folder. When the user clicks the Make New Folder button the tree allows the creation of the folder but doesn't return the folder name so that it can be shown in the status text control. How can I detect the closing of the edit control and get the new folder path? Thanks

    D 1 Reply Last reply
    0
    • R Royce Fickling 0

      Hi, I am using the Browse For Folder dialog to allow selection of an existing folder or the creation of new folder. When the user clicks the Make New Folder button the tree allows the creation of the folder but doesn't return the folder name so that it can be shown in the status text control. How can I detect the closing of the edit control and get the new folder path? Thanks

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

      What about the lpfn member (of the BROWSEINFO structure)?

      "Love people and use things, not love things and use people." - Unknown

      "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

      R 1 Reply Last reply
      0
      • D David Crow

        What about the lpfn member (of the BROWSEINFO structure)?

        "Love people and use things, not love things and use people." - Unknown

        "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

        R Offline
        R Offline
        Royce Fickling 0
        wrote on last edited by
        #3

        I know how to use the lpfn function pointer, but I am not sure what you are suggesting. I am setting that pointer to my callback function, but it is not being called when the user is doneediting the folder name.

        D 1 Reply Last reply
        0
        • R Royce Fickling 0

          I know how to use the lpfn function pointer, but I am not sure what you are suggesting. I am setting that pointer to my callback function, but it is not being called when the user is doneediting the folder name.

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

          Royce Fickling wrote:

          I am setting that pointer to my callback function, but it is not being called...

          Is it being called for anything? I would have thought a TVN_ENDLABELEDIT notification would be sent.

          "Love people and use things, not love things and use people." - Unknown

          "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

          R 1 Reply Last reply
          0
          • D David Crow

            Royce Fickling wrote:

            I am setting that pointer to my callback function, but it is not being called...

            Is it being called for anything? I would have thought a TVN_ENDLABELEDIT notification would be sent.

            "Love people and use things, not love things and use people." - Unknown

            "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

            R Offline
            R Offline
            Royce Fickling 0
            wrote on last edited by
            #5

            No, it is being called with the BFFM_INITIALIZED and BFFM_SELCHANGED messages and nothing else. I thought maybe I needed to set another flag, but I don't know what it might be.

            D 1 Reply Last reply
            0
            • R Royce Fickling 0

              No, it is being called with the BFFM_INITIALIZED and BFFM_SELCHANGED messages and nothing else. I thought maybe I needed to set another flag, but I don't know what it might be.

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

              I do not see any other ones here that look promising. :(

              "Love people and use things, not love things and use people." - Unknown

              "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

              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