hi,
i made a little tweak that changes windows hidden attribute. however,i don't see changes right away ,only after refresh (with F5 or right click). how do i refresh from within my application?
hi there,
i know it can be done 'cause the "tweak xp" software does it.
for example if you change recycle bin's icon name it shows the changes right away.
what happends when you press F5 or right click refresh?
maybe i can use those methods to? how do i access them?
Actually... all you need to do is send a WM_PAINT message to specific window (or anythind that actually has a window handle...) and it will cause refreshing.
OK, I obviously don't understand what's the problem here You can't force 'registry' to refresh! What you could do is to force application to refresh its status, so if the app needs registry info to fully refresh, it will read your registry tweaks and change appropriatelly, since 'registry' is nothing else than a big database!
Send a refresh message to desktop 'window' and it will re-read everything it needs and redraw itself! The same is with any other application!
>bNasty
the refresh like you say, refreshes only data loaded in memory, but registry is a file, so if you send WM_PAINT then regedit will repaint from data loaded in memory. The question is how to make regedit to load in memory the registry file again. It is not loaded automatically when just refresh graphical information.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.