Click to See Complete Forum and Search --> : SPI_SETDESKWALLPAPER not working?


QBasicer
May 27th, 2006, 10:50 PM
When I use the command:

SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, "C:\\WINDOWS\\Web\\Wallpaper\\Follow.jpg", SPIF_UPDATEINIFILE)
It returns non-zero, and everything seems to go OK, but however, when a screen gets minimized, or moves, the part that was covering up the desktop goes to the default colour. See this picture (http://img137.imageshack.us/img137/9448/wallpaperbadness9nt.jpg).

Currently running XP Pro SP2.

Note: When I type in C:\WINDOWS\Web\Wallpaper\Follow.jpg into explorer I get a picture with pretty little fishes.

QBasicer
May 28th, 2006, 10:15 PM
Ok, that's solved. I used the DevIL library to load the JPG and save it in the temp dir as a .BMP, then loaded that.