Advertisement Jump to content


This topic is now archived and is closed to further replies.


Set Image as desktop background

This topic is 6329 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I searched on msdn for setting a bitmap as desktop background, but found nothing good on it. COuld anyone please give me a link or tell me what I need to do to write soem C++ code to set the desktop background for a certain image like in paintbrush or IE?

Share this post

Link to post
Share on other sites
Look at the SystemParametersInfo API call in msdn, it''s what you are looking for. Pass the SPI_SETDESKWALLPAPER flag along with a path, and voila''!

Note that the opposite functionality (SPI_GETDESKWALLPAPER) is for Win2k only

PAGE FAULT: Please insert "Swap File, Disk 2"
and press any key to continue.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!