Solved

Wallpaper

Posted on 1997-06-24
1
197 Views
Last Modified: 2010-04-04
How do I get my Delphi program to change the Windows 95 wallpaper and then refresh it so the user can see the change?

I use Delphi 1 & 2
0
Comment
Question by:Draco
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
sleach earned 20 total points
ID: 1337718
for delphi 2, try:

SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, 'C:\windows\NewPaper.bmp', SPIF_UPDATEINIFILE);

or

SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, 'C:\windows\NewPaper.bmp', SPIF_SENDWININICHANGE);

Not sure which one is the paramater for the last option.  I would test, but I just re-installed windows, and delphi isn't back up yet.

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question