G
gregory_may
I need to refresh the desktop wallpaper (Its getting corrupted by a 3rd
party application). Is there a better way than this (This is working, but
it makes me nervous ... it should be simpler)?:
Dim UserWallpaper As String = RegValue(RegistryHive.CurrentUser, "Control
Panel\Desktop", "Wallpaper")
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, UserWallpaper,
SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE)
It seems like there should be another function that will just refresh the
window without me having to dig the information out of the registry .... any
thoughts?
party application). Is there a better way than this (This is working, but
it makes me nervous ... it should be simpler)?:
Dim UserWallpaper As String = RegValue(RegistryHive.CurrentUser, "Control
Panel\Desktop", "Wallpaper")
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, UserWallpaper,
SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE)
It seems like there should be another function that will just refresh the
window without me having to dig the information out of the registry .... any
thoughts?