Solved

Wallpaper

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

895 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

13 Experts available now in Live!

Get 1:1 Help Now