Jump to content
  • Advertisement

Archived

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

KingsRevenge

Set Image as desktop background

This topic is 6241 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
Advertisement
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 GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!