Question and Answer Database FAQ4483C.txt — How to I stretch the Windows wallpaper Category :VCL Platform :All-32Bit Product :All-CBuilder, Question: How do I stretch the Windows wallpaper using C++Builder? Answer: To stretch Windows wallpaper set the key: HKEY_CURRENT_USER\Control Panel\Desktop\WallpaperStyle to 2 for stretched or 0 for not stretched. TRegistry *registry = new TRegistry(); registry->RootKey = HKEY_CURRENT_USER; registry->OpenKey("Control Panel\\Desktop", true); // "2" is streteched. "0" is not stretched. registry->WriteString("WallpaperStyle", "2"); delete registry; // Refresh the background SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, NULL, SPIF_UPDATEINIFILE); 3/22/99 2:05:58 PM
Last Modified: 01-SEP-99