[ Home | Contents | Search | Next | Previous | Up ]
Date: 12/1/99
Time: 10:04:20 PM
How do I change the Windows wallpaper in code?
Call the Windows API function SystemParametersInfo() passing the SPI_SETDESKWALLPAPER parameter along with the filename of the new bitmap to use.
Example:
SystemParametersInfo(SPI_SETDESKWALLPAPER,
0,
"C:\\SOMEPATH\\SOME.BMP",
SPIF_SENDWININICHANGE);