Need some guidance in creating custom Wallpaper...
Hey, folks!
I am working on this corporate screensaver, and I am working on a function whereby the user can select a button and the screensaver will create and display a Windows Wallpaper image based on the currently configured display settings.
I have most of the work done: I am using a Surface object to capture the Desktop, then save it as a Bitmap file to this directory:
GlobalWindowsFolder$( "YASO Object" )+"\web\wallpaper\Ultimus Wallpaper.bmp"
From what research I have done, it seems all Windows operating system ranging from XP to 7 store Wallpaper images in this directory. (Please correct me if I'm wrong, though!) I successfully am able to save a Bitmap to this directory.
I then use a Registry object to specify which image to use as the Wallpaper image, and to not tile that image. I use these Registry object actions:
1.) Set value "Wallpaper" of key "HKEY_CURRENT_USER\Control Panel\Desktop" to GlobalWindowsFolder$( "YASO Object" )+"\web\wallpaper\Ultimus Wallpaper.bmp"
2.) Set value "TileWallpaper" of key "HKEY_CURRENT_USER\Control Panel\Desktop" to "0"
I am able to successfully modify these Registry keys.
The problem I am having is my results on my Windows XP computer. Presently I have the Windows-default "Bliss.bmp" image as the Wallpaper. It doesn't get replaced by these actions. Furthermore, if I go the Desktop Display settings, I see that my custom Wallpaper image is there and set to be the Wallpaper image. If I select OK in the Display Settings dialog box, the Wallpaper image doesn't change.
So, I'm wondering if I'm doing something wrong. Is there another Registry key I need to adjust before the Wallpaper image changes? Or am I doing something else wrong?
Thank you, as always, for all your help!
Most appreciatively...
RGBreality