hi, i want to write a program to change the wallpaper immediately when some button is clicked. i use vc++. does any 1 know a function call or registry tweak to do this.
or, you can use IActiveDesktop::Set(Get)Wallpaper... This shoud do the trick if you're using MFC...
But, if you are more in Windows api, a call to SystemParametersInfo function, with uiAction parameter set to SPI_SETDESKWALLPAPER and the pvParam set to a string pointing to the location of the bitmap.
You should check MSDN for a complete reference about this function... [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
thats a great tip, but could u tell me the header file of IActiveDesktop (hope it comes along with standard vc++ installation). i tried SystemParametersInfo & it worked but how do i refresh the desktop window so that it changes to the new wallpaper. plz help!!!.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.