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?
 
RadlerConnect With a Mentor Commented:
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
 
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
All Courses

From novice to tech pro — start learning today.