pahuja
July 25th, 2003, 10:16 AM
I need to change the Desktop Wallpaper settings - Position (Stretch, tile etc.), Color and Wallpaper from within my application.
Now the SystemParametersInfo API sets the Desktop Wallpaper but I could not find any Win32 API for changing the Position and Color settings.
The IActiveDesktop Interface too only supports till position but not color.
I tried setting these in Registry and then when I refreshed desktop (manually), the settings are not reflected. Only when I open display properties and do apply do they get reflected.
Is there any way i could change the settings and apply them programmatically ?
Now the SystemParametersInfo API sets the Desktop Wallpaper but I could not find any Win32 API for changing the Position and Color settings.
The IActiveDesktop Interface too only supports till position but not color.
I tried setting these in Registry and then when I refreshed desktop (manually), the settings are not reflected. Only when I open display properties and do apply do they get reflected.
Is there any way i could change the settings and apply them programmatically ?