How do I change periodically wallpapers in Windows XP?

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.
VolgaAsked:
Who is Participating?
 
mahesh1402Commented:
Have a look at SystemParametersInfo with SPI_SETDESKWALLPAPER.

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

where szFilename is the new wallpaper file.

-MAHESH
0
 
VolgaAuthor Commented:
Mahesh,
Thankx for the advice.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.