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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Browse for folder

Browse for folder

Scheduled Pinned Locked Moved C / C++ / MFC
5 Posts 3 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.
  • T Offline
    T Offline
    Tuyet Tin 5
    wrote on last edited by
    #1

    I use SHBrowseForFolder to display folder select dialog. How detect folder change (create new, delete, ...) while this dialog displaying. Thank for your answer.

    H L 2 Replies Last reply
    0
    • T Tuyet Tin 5

      I use SHBrowseForFolder to display folder select dialog. How detect folder change (create new, delete, ...) while this dialog displaying. Thank for your answer.

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Can you be more specific.

      _**


      **_

      WhiteSky


      T 1 Reply Last reply
      0
      • T Tuyet Tin 5

        I use SHBrowseForFolder to display folder select dialog. How detect folder change (create new, delete, ...) while this dialog displaying. Thank for your answer.

        L Offline
        L Offline
        Le Thanh Cong
        wrote on last edited by
        #3

        To update folder dialog, you can do follow: Use SHGetPathFromIDList( m_bi.pidlRoot, pszPath ) to get root folder path Use IShellFolder::ParseDisplayName to convert root folder path to LPITEMIDLIST (pidlRoot) Assign this pointer (pidlRoot) to m_bi.pidlRoot: m_bi.pidlRoot = pidlRoot; to refresh folder dialog. This code i didn't test, but i think it can do.:-D

        ----------------- Best Regards, Le Thanh Cong

        1 Reply Last reply
        0
        • H Hamid Taebi

          Can you be more specific.

          _**


          **_

          WhiteSky


          T Offline
          T Offline
          Tuyet Tin 5
          wrote on last edited by
          #4

          I use SHBrowseForFolder to display BrowforFolder dialog box. And i create a button to create new folder. Then, i don't know how to refresh the BrowseforFolder dialog box to update this folder i've created. Yes, i know in SHBrowseForFolder has the new style dialog which may help us to create new folder. But i want to create by my self and update to BrowforFolder dialog box is displyaing. thank for your help.

          H 1 Reply Last reply
          0
          • T Tuyet Tin 5

            I use SHBrowseForFolder to display BrowforFolder dialog box. And i create a button to create new folder. Then, i don't know how to refresh the BrowseforFolder dialog box to update this folder i've created. Yes, i know in SHBrowseForFolder has the new style dialog which may help us to create new folder. But i want to create by my self and update to BrowforFolder dialog box is displyaing. thank for your help.

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            Hope I understood your question if you want to insert your buttons to SHBrowseForFolder for update or delete I see exmples of SHBrowseForFolder on codeproject

            _**


            **_

            WhiteSky


            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