
How can I refresh the desktop to display a new wallpaper I've changed in the registry???
After changing the registry, use this function (change the 3rd parameter
to the name of the BMP file):
SystemParametersInfo SPI_SETDESKWALLPAPER, 0&, WallPaperFile.bmp,
SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE
Here are the declares:
Declare Function SystemParametersInfo& Lib "user32" Alias
"SystemParametersInfoA" (ByVal uAction&, ByVal uParam&, ByVal lpvParam As
Any, ByVal fuWinIni&)
Public Const SPIF_UPDATEINIFILE = &H1
Public Const SPI_SETDESKWALLPAPER = 20
Public Const SPIF_SENDWININICHANGE = &H2
Marcelo Abreu
Quote:
> I've built a code to change the wallpaper in the registry, but I can't
make
> it refresh the desktop to show this new wallpaper...
> Any help???