views:

134

answers:

0

I have a Window that needs to be redrawn when the wallpaper changes. I can detect normal wallpaper changes by simply checking for WM_SETTINGCHANGE with wParam SPI_SETDESKWALLPAPER.

I'm not really happy with my current solution which simply uses a timer to check if the wallpaper has changed once a second. I've considered trying to parse the theme file, but I'd still need to synchronize with the wallpaper change (which would mean checking for the change until it changes once), and I'd also need to somehow get notified when the theme changes. Not really ecstatic about using RegNotifyChangeKeyValue either.