Support
10-02-2002, 10:25 AM
<HTML><HEAD><TITLE>HOWTO: Change the Desktop Wallpaper</TITLE></HEAD><BODY><h3>HOWTO: Change the Desktop Wallpaper</h3><b>Document ID: IR04010</b><hr>The information in this article applies to:<ul><li>AutoPlay Media Studio 4.0</li></ul><hr><h3>SUMMARY</h3><p>This article explains how to change the desktop wallpaper.</p><h3>DISCUSSION</h3><p>Changing the desktop wallpaper on a user's computer is very easy; basically the "HKEY_CURRENT_USER\Control Panel\Desktop\WallPaper" registry value must be edited. The "HKEY_CURRENT_USER\Control Panel\Desktop\WallPaper" registry value contains the full path to the image file that will be used as the desktop wallpaper.</p><p>The following file types are supported as wallpapers: *.bmp, *.gif, *.jpg, *.dib, and *.htm.</p><p>So in order to change the end use's desktop wallpaper simply use a <b>Registry.SetValue</b> action to set the value of "HKEY_CURRENT_USER\Control Panel\Desktop\WallPaper" to be the full path to your desktop file.</p><p><b>Example:</b></p><p>For example, here is a <b>Registry.SetValue</b> action that will set the desktop wallpaper to "C:\MyProgram\MyGraphics\Me.bmp":</p><PRE><code><b>Main key:</b> HKEY_CURRENT_USER<br><b>Sub key:</b> Control Panel\Desktop<br><b>Value name:</b> WallPaper<br><b>Value type:</b> REG_SZ<br><b>Value data:</b> C:\MyProgram\MyGraphics\Me.bmp<br></code></PRE><p><p><b>Note:</b> The changes will not take effect until the system is rebooted.</p>You can set the desktop wallpaper to use three different styles: Center, Tile, and Stretch. In order to apply those settings you will have to modify the value of the following two registry keys:</p><ul><li>HKEY_CURRENT_USER\Control Panel\Desktop\WallpaperStyle</li><li>HKEY_CURRENT_USER\Control Panel\Desktop\TileWallpaper</li></ul><p>In order to apply the styles use the following guide:</p><p><b>Center</b></p><ul><li>WallpaperStyle = 0</li><li>TileWallpaper = 0</li></ul><p><b>Tile</b></p><ul><li>WallpaperStyle = 0</li><li>TileWallpaper = 1</li></ul><p><b>Stretch</b></p><ul><li>WallpaperStyle = 2</li><li>TileWallpaper = 0</li></ul><h3>MORE INFORMATION</h3><p>KEYWORDS: Wallpaper, Background, Desktop, AutoPlay Media Studio 4.0, Registry.SetValue</p><hr><FONT SIZE=1>Last reviewed: October 2, 2002<br>Copyright © 2002 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br></FONT></BODY></HTML>