Solved

Wallpaper

Posted on 1997-06-24
1
184 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
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now