Hi!
I'd like to exchange the desktop wallpaper within my program by a JPG file.
At the moment I know how to assign it with a BMP file. I just call the SystemParametersInfo() function (from the Win32.dll) like that:
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, WallpaperName.c_str(),SPIF_UPDATEINIFILE);
But again, that only works with a BMP file. What do I have to do for exchanging it by a JPG file?
(I thought just activating >>active desktop<< would solve this, but it doesn't)
Thanks in advance for any help!
Christian
I'd like to exchange the desktop wallpaper within my program by a JPG file.
At the moment I know how to assign it with a BMP file. I just call the SystemParametersInfo() function (from the Win32.dll) like that:
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, WallpaperName.c_str(),SPIF_UPDATEINIFILE);
But again, that only works with a BMP file. What do I have to do for exchanging it by a JPG file?
(I thought just activating >>active desktop<< would solve this, but it doesn't)
Thanks in advance for any help!
Christian