Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

assigning desktop wallpaper

Status
Not open for further replies.

Cuse

Technical User
Mar 21, 2004
1
SE
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
 
Choose interface IActiveDesktop. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top