![]() |
Den Shell Icon Cache neu aufbauen
Unser Mitglieg _frank_ hat in
![]()
Delphi-Quellcode:
[edit=Chakotay1308]Code-Style! Mfg, Chakotay1308[/edit]
function RefreshScreenIcons: Boolean;
var Reg: TRegistry; CIS: string; begin Result := false; Reg := TRegistry.Create; try Reg.RootKey := HKEY_CURRENT_USER; if Reg.OpenKey('Control Panel\Desktop\WindowMetrics', true) then begin CIS := Reg.ReadString('Shell Icon Size'); Reg.WriteString('Shell Icon Size', IntToStr(StrToInt(CIS) -2)); PostMessage(HWND_BROADCAST, WM_DISPLAYCHANGE, 0, 0); Sleep(20); Reg.WriteString('Shell Icon Size', CIS); PostMessage(HWND_BROADCAST, WM_DISPLAYCHANGE, 0, 0); end; Reg.CloseKey; Result := true; finally Reg.Free; end; end; [edit=Matze]Überarbeitete Version eingefügt. Mfg, Matze[/edit] |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:19 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz