SystemParametersInfo wallpaper problem

G

Guest

I'm trying to set the desktop wallpaper to nothing and change the desktop
background color. I can successfully remove the wallpaper but it doesn't
refresh the desktop background color until I reboot. Does anyone know how to
tell windows to refresh the desktop background color? thanks!

here is how I'm using SystemParametersInfo

int result = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0,
tempImageFilePath, SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
 
G

Guest

Strange, I would expect the SPIF_SENDCHANGE flag would cause the
WM_SETTINGCHANGE message to be broadcast throughout the system.

What value have to defined for SPIF_SENDCHANGE?

Can you verify, with something like Spy++, that the WM_SETTINGCHANGE is
indeed being broadcast?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top