How do I change periodically wallpapers in Windows XP?

Posted on 2006-04-29
Last Modified: 2013-11-20
I want to wite a VC++ MFC program to change periodically the wallpapers in Windows XP. All these images are under .bmp format and stored in a designated directory. I'm using Microsoft VC++6. Thanks for your help.
Question by:Volga
    LVL 22

    Accepted Solution

    Have a look at SystemParametersInfo with SPI_SETDESKWALLPAPER.

    ::SystemParametersInfo(SPI_SETDESKWALLPAPER, 0,szFilename, SPIF_UPDATEINIFILE);

    where szFilename is the new wallpaper file.


    Author Comment

    Thankx for the advice.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    732 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

    21 Experts available now in Live!

    Get 1:1 Help Now