donvittorio
Programmer
Hi,
I'm writing a little program to change the desktop wallpaper on a Win 2000 machine. I am changing the registry settings for stretch, tile and centre okay and I'm using SystemParametersInfo to set the wallpaper okay using the following line
but the change is not applied immediately. To get the change to actually appear on screen then I have to go into the desktop properties dialog screen and apply the change manually (or reboot the machine).
Does anybody know how to apply the change so that it is effective immediately?
Thanks
Steve
I'm writing a little program to change the desktop wallpaper on a Win 2000 machine. I am changing the registry settings for stretch, tile and centre okay and I'm using SystemParametersInfo to set the wallpaper okay using the following line
Code:
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, Pointer(Filename), SPIF_UPDATEINIFILE)
Does anybody know how to apply the change so that it is effective immediately?
Thanks
Steve