Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++DelphiRAD StudioWindows

How To Change Your Background On Windows

delphinautwallpaper

Vaporwave and synthwave, which combine futurism and nostalgia, have become popular in recent years. We commissioned a Brazilian artist to create a vaporwave aesthetic for RAD Studio, Delphi, and C++Builder. What better way to mark the occasion than with some vaporwave desktop wallpapers and Win32 API calls? There is a separate wallpaper for RAD Studio, Delphi, and C++Builder, so you can choose which one you prefer for your desktop background. As you may know, Delphi produces native executables on Windows and is able to work very closely with the Win32 API. We would love to see all the creative ways you could mash up the backgrounds and the example application into new projects celebrating Delphi, C++Builder, and RAD Studio!

In this post, we’ll show you a simple demo application that was created that uses the SystemParametersInfo() Windows API call to set the background (wallpaper) of your Windows desktop. This should work across many versions of Windows including 11/10/8/7 and probably even older versions.

How can I change the Windows background image via the API?

Here is a sample of that Win32 API call. It is literally one line of code. This API call is available to you by simply adding the Windows unit to your uses clause.

The application is built in RAD Studio’s FireMonkey framework which is a cross-platform framework for Android, iOS, macOS, Windows, and Linux. You will see that it features three buttons; one for setting each of the 3 wallpaper backgrounds.

delphinautappsmall 3995973

The full source code for the Change Windows Wallpaper project is available on GitHub and is included below:

Where is the RADnaut Windows wallpaper background?

The full RADnaut image is available below and available on GitHub. You can right click on it and save it from here. There is also a smaller version used as a background within the app itself and suitable for social media.

radnaut 1580491
rad 2253586

Where is the Delphinaut Windows wallpaper background?

The full Delphinaut image is available below and available on GitHub. You can right click on it and save it from here. There is also a smaller version of the background suitable for social media.

delphinaut 5449818
delphi 3043687

Where is the C++naut Windows wallpaper background?

The full C++naut image is available below and available on GitHub. You can right-click on it and save it from here. There is also a smaller version of the background suitable for social media.

cppnaut 9829640
cpp 4709328

As you can see it is really easy to access the Win32 API to change the background from within RAD Studio native Windows applications.

Head over and download the full source code for changing the Windows background wallpaper!

With RAD Studio’s Native Windows Development, you can create your own API that changes the wallpaper backgrounds. Try the free trial here.

See What's New in 12.2 Athens See What's New in 12.2 Athens Dev Days of Summer 2-24

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES