Program to change desktop background

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2004
Posts: 217
Reputation: marceta is an unknown quantity at this point 
Solved Threads: 0
marceta marceta is offline Offline
Posting Whiz in Training

Program to change desktop background

 
2
  #1
Aug 10th, 2004
Hi everyone. I heard that it is possible to code up a small program to randomly change windows desktop bg pic. I havent got any code (as i dont know how to do it) so could some plz tell me, or direct me to a site or something. Btw this isnt homework, just something im curious about!

many thx in advance
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 1,620
Reputation: kc0arf is a jewel in the rough kc0arf is a jewel in the rough kc0arf is a jewel in the rough 
Solved Threads: 51
Team Colleague
kc0arf kc0arf is offline Offline
Posting Virtuoso

Re: Program to change desktop background

 
0
  #2
Aug 10th, 2004
Hello,

I would guess that this is handled by the Windows Registry. You can make what is called a .reg file that inserts information into the registry. You could write a C++ code to prompt the user the desktop options, and then have the C++ program make the registry edit. You would also need to specify if you want the current user to only receive the edit, or the whole bunch.

Do a search on Windows Desktop Registry. See what you find.

Christian
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 217
Reputation: marceta is an unknown quantity at this point 
Solved Threads: 0
marceta marceta is offline Offline
Posting Whiz in Training

Re: Program to change desktop background

 
0
  #3
Aug 10th, 2004
i did a search of the registry, although i used fairly clear keyterms, i coudlnt find anything. Thanks for the help though Christian. Does anyone know how to do it?
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 153
Reputation: cosi is an unknown quantity at this point 
Solved Threads: 1
cosi's Avatar
cosi cosi is offline Offline
Junior Poster

Re: Program to change desktop background

 
1
  #4
Aug 11th, 2004
Actually you can do this programatically fairly easily...
Using Windows API's SystemParametersInfo with SPI_SETDESKWALLPAPER.

http://msdn.microsoft.com/library/de...metersinfo.asp

I don't program in Win32 anymore, so the if you get stuck try looking here:
http://www.c-sharpcorner.com/Code/20...eWallpaper.asp
You should be able to figure out which constants correspond to the given values in the example.

Have fun!


Ed
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 217
Reputation: marceta is an unknown quantity at this point 
Solved Threads: 0
marceta marceta is offline Offline
Posting Whiz in Training

Re: Program to change desktop background

 
0
  #5
Aug 11th, 2004
thx a lot, massive help. just 1 question. What thing in "File->New" do i click on in Microsoft Visual C++?. thnx again
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 153
Reputation: cosi is an unknown quantity at this point 
Solved Threads: 1
cosi's Avatar
cosi cosi is offline Offline
Junior Poster

Re: Program to change desktop background

 
0
  #6
Aug 20th, 2004
New Project?
In a world without walls or fences,
What use are Windows and Gates.
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 217
Reputation: marceta is an unknown quantity at this point 
Solved Threads: 0
marceta marceta is offline Offline
Posting Whiz in Training

Re: Program to change desktop background

 
0
  #7
Aug 24th, 2004
...what kind of project?
Last edited by alc6379; Aug 24th, 2004 at 1:04 pm. Reason: misspelled what
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 5
Reputation: missionpilot is an unknown quantity at this point 
Solved Threads: 0
missionpilot missionpilot is offline Offline
Newbie Poster

Re: Program to change desktop background

 
-1
  #8
Mar 17th, 2007
Originally Posted by marceta View Post
...what kind of project?
Hmmm...well it appears that you're in Visual C++ so what kind of project do you think that a person might make in a C++ IDE? This isn't rocket science my friend....
Last edited by missionpilot; Mar 17th, 2007 at 1:08 am.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Program to change desktop background

 
0
  #9
Mar 17th, 2007
Originally Posted by missionpilot View Post
Hmmm...well it appears that you're in Visual C++ so what kind of project do you think that a person might make in a C++ IDE? This isn't rocket science my friend....
After nearly 3 YEARS, do you really think that the OP cares?
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 5
Reputation: missionpilot is an unknown quantity at this point 
Solved Threads: 0
missionpilot missionpilot is offline Offline
Newbie Poster

Re: Program to change desktop background

 
0
  #10
Mar 17th, 2007
Originally Posted by joeprogrammer View Post
After nearly 3 YEARS, do you really think that the OP cares?
Haha, I found this while looking for something else on Google. I never even checked the date. I'm sorry.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC