Code   Information
Information Setting Wallpaper.

This is another one, like the progress bar stuff, that's easy if you know where to look. The function that does this is useful for all sorts of other things as well, why not have a squint at the documentation for it? Anyway, the function you'll be needing's shown down below. The SPIF_SENDCHANGE bit's supposed to send the WM_SETTINGCHANGE message to the whole system after writing the new system-wide parameter setting to the user profile. Which it kind of does, but not permanently. When you re-start Windows it'll have lost the setting change you've just made. Anyone like to tell me why?

   
  ...
SystemParametersInfo(
   SPI_SETDESKWALLPAPER,
   0,
   (LPVOID)"c:\\temp\\badger.bmp\0",
   SPIF_SENDCHANGE
);
...
 
     
 




G.E.M