Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SFML 2.0] Wallpaper  (Read 1563 times)

0 Members and 2 Guests are viewing this topic.

diego997

  • Newbie
  • *
  • Posts: 21
    • View Profile
[SFML 2.0] Wallpaper
« on: December 16, 2012, 01:57:24 pm »
Hello, Could you tell me if SFML 2.0 has any method which sets image as Wallpaper ? I have serached through the Internet, but I have not found anything, that's why I am writing here.

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: [SFML 2.0] Wallpaper
« Reply #1 on: December 16, 2012, 02:21:35 pm »
SFML doesn't do that.

diego997

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [SFML 2.0] Wallpaper
« Reply #2 on: December 16, 2012, 04:22:12 pm »
Ok, I have found an answer:


Here is the code that I had to write(works only with bmp files):
Code: [Select]
SystemParametersInfo(SPI_SETDESKWALLPAPER , 0 , "c:\\angel.bmp" ,       SPIF_UPDATEINIFILE) ;

I wrote this solution because maybe someone else would have a problem with that, if I shouldn't just mention :D