Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SPI_SETDESKWALLPAPER isn' save by windows

0 views
Skip to first unread message

Coggia

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
Maybe it's not the good board to post this message on, but as it speaks of
graphics bitmaps....

I got a little problem here with the SystemParametersInfo function.
To simplify, I got this code :

SystemParametersInfo(SPI_SETDESKWALLPAPER,0,name,0);

where name is a path+bmp file ...
It works..But not as I really want to...
Because if the current wallpaper is changed with the new bmp included in the
name,
if I restart ther computer the wallpaper will be again the old bmp choosen,
because the setdeskwallpaper don't seems to change anything in the display
windows property.
In fact windows will keep the config that was originally manually made.

So, is there a way to really change the wallpaper, even for windows?

Gary Holden

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
SystemParametersInfo(SPI_SETDESKWALLPAPER,0,name,SPIF_UPDATEINIFILE |
SPIF_SENDWININICHANGE);
That should do it!

Coggia

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
thanks,
but where did you get these infos on the parameters?..
I don't find it in the win32.hlp..

Jonathan Arnold

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
> but where did you get these infos on the parameters?..
> I don't find it in the win32.hlp..

A great resource for Windows programming is the Microsoft Developer's Network.
You can get the CD for about $70, or if you have a reasonably fast Internet
connection, you can get it all online at:
http://msdn.microsoft.com

+====================================================+
| Jonathan Arnold (mailto:jdar...@buddydog.org) |
| Havas Interactive HyperStudio Engineer |
| http://www.buddydog.org http://www.hyperstudio.com |
+====================================================+

Outside of a dog, a book is man's best friend. Inside
of a dog, it's too dark to read. -- Groucho Marx

0 new messages