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. How to refresh Explorer window after Registry key changed?

How to refresh Explorer window after Registry key changed?

Scheduled Pinned Locked Moved C / C++ / MFC
windows-admintutorialquestion
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.
  • E Offline
    E Offline
    EastDragon
    wrote on last edited by
    #1

    How to refresh Explorer window after Registry key changed? I want to hide the files that have hide attribe so I set [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "Hidden" to 0 But that doesn't affect the current opened explorer window. I have to use "refresh" menu (not F5 button) to command to hide the hidden files. How to tell the current opened explorer window to hide these hidden files after I set the registry key? Thanks a lot!


    Let's roll!

    M 1 Reply Last reply
    0
    • E EastDragon

      How to refresh Explorer window after Registry key changed? I want to hide the files that have hide attribe so I set [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "Hidden" to 0 But that doesn't affect the current opened explorer window. I have to use "refresh" menu (not F5 button) to command to hide the hidden files. How to tell the current opened explorer window to hide these hidden files after I set the registry key? Thanks a lot!


      Let's roll!

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

      Check out SHChangeNotify() - there might be a flag that will make Explorer refresh its views. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

      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