SystemParametersInfo wallpaper problem

  • Thread starter Thread starter Guest
  • Start date Start date
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);
 
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?
 
Back
Top