SystemParametersInfo
-
Hi. can anyone please help me find out why this code doesn't work: char* nextWpName = "mypic.jpg" SystemParametersInfo (SPI_SETDESKWALLPAPER,0,nextWpName,SPIF_UPDATEINIFILE); my wallpaper simply disappears and goes blank. help...
-
Hi. can anyone please help me find out why this code doesn't work: char* nextWpName = "mypic.jpg" SystemParametersInfo (SPI_SETDESKWALLPAPER,0,nextWpName,SPIF_UPDATEINIFILE); my wallpaper simply disappears and goes blank. help...
You need to pass the full path to the file.
Software Zen:
delete this;
-
You need to pass the full path to the file.
Software Zen:
delete this;
Ofcourse I'm doing that... The code was only an example... try running it and see if it works for you
-
Ofcourse I'm doing that... The code was only an example... try running it and see if it works for you
Lior Shoval wrote: try running it and see if it works for you It didn't worked for me. I tested it on WinME and it didn't change to anything... hm.. weird... GetLastError returned 0 so... I don't know! :( Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!
-
Hi. can anyone please help me find out why this code doesn't work: char* nextWpName = "mypic.jpg" SystemParametersInfo (SPI_SETDESKWALLPAPER,0,nextWpName,SPIF_UPDATEINIFILE); my wallpaper simply disappears and goes blank. help...
I think that you can only set a BMP wallpaper with that API. To use a JPG you need to turn on ActiveDesktop and use the
IActiveDesktop
interface to set a wallpaper. --Mike-- If it doesn't move and it should: WD-40. If it moves and it shouldn't: duct tape. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm