[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

Wallpaper

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
Draco
Asked:
Draco
1 Solution
 
sleachCommented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now