Refresh Windows

if I have write to the reg how can I refresh windows.
write to change the windows icons,wallpaper,mouse,colors.....
ILPowerSoftAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RadlerCommented:
Try this

.....
SendMessage( HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0 );
Application.ProcessMessages; //Reload you too

T++, Radler.
0
edeyCommented:
Radler's sug. should work, I would also think you should be able to call:

invalidateRect(0,nil,true);



GL
Mike
0
RadlerCommented:
Because the finallity was ignored by me.
I gave a heavy sledghammer in the problem.
I imagine that the shell( Windows Explorer ) wouldn't forget about repaint the Desktop.

T++, Radler.
0
ILPowerSoftAuthor Commented:
Sorry it didnt work
0
RadlerCommented:
Two more hints:
1 - If you is using win98 you must give a delay before make another operation with the shell
2 - If your change is very particular pass at LPARAM
 integer( @VarString ) or integer( VarPCHar ) that contain the path with the change at registry, like HKEY_LOCAL_MACHINE\...\ShellSetting.


T++, Radler.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.