Mega Code Archive

 
Categories / Delphi / Strings
 

Change the desktops icon and screensaver

You cannot get these changes effective immeadiatelybe by broadcasting WM_WININICHANGE or WM_SETTINGCHANGE messages. SystemParametersInfo() has no command available for this either. Solution: After updating the registry appropriately, SetSysColor() updates the memory variable that holds the System colors. This method also tells the screen to redraw. This is esp. needed to update the icons's background color.