How can I refresh the desktop to display a new wallpaper I've changed in the registry??? 
Author Message
 How can I refresh the desktop to display a new wallpaper I've changed in the registry???

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???



Mon, 17 Jul 2000 03:00:00 GMT  
 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???



Mon, 17 Jul 2000 03:00:00 GMT  
 How can I refresh the desktop to display a new wallpaper I've changed in the registry???

        Using the code of the message above you don't need to change the registry.

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???



Mon, 17 Jul 2000 03:00:00 GMT  
 How can I refresh the desktop to display a new wallpaper I've changed in the registry???

 ----->The 2nd parameter can be 0 (centered) or 1 (tiled).



Tue, 18 Jul 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Refreshing the desktop wallpaper...

2. Wallpaper does not change with Active Desktop

3. Change Desktop Wallpaper

4. Help API changing desktop wallpaper

5. Wallpaper does not change with Active Desktop

6. Changing wallpaper on desktop

7. Changing Wallpaper & Desktop Settings

8. How can I change the Desktop Wallpaper from a VB application

9. How to change desktop wallpaper

10. How do i do a vbscript to change my desktop wallpaper when my computer start

11. Changing HTML Wallpaper for Active Desktop

12. Changing Desktop Wallpaper from code using JPG files

 

 
Powered by phpBB® Forum Software