Autor Beitrag
qwertzuiopü
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Mi 29.03.06 20:26 
Hallo zusammen,

ich hätte gerne gewust, wie ich herausfinde wie der Pfad zu dem Aktuelem Hintergrundbild lautet?

Ich möchte ein Programm erstellen, das den Hintergrund ändert, und wenn ich das Programm schließe, sich der alte hintergrund wider Herstelt.


qwertzuiopü
reichemi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 41

WinXP home + prof, SUSE 9.2
Delphi 6
BeitragVerfasst: Mo 03.04.06 09:48 
:mahn: eine suche mittels google nach "delphi wallpaper auslesen" brachte mich hier hin (3. ergebnis!!): spotlight.de/nzforen...141818820-11737.html

die lösung: in der registry den wert von "Wallpaper" unter HKEY_CURRENT_USER\Control Panel\Desktop auslesen

zum setzen am besten sowas verwenden:

ausblenden Delphi-Quelltext
1:
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, PChar(filename), SPIF_SENDCHANGE OR SPIF_UPDATEINIFILE)					
qwertzuiopü Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Di 11.04.06 09:04 
Ich habe noch nie etwas aus der regedit ausgelesen, wie geht das?
Horschdware
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 744
Erhaltene Danke: 54

Win XP Pro, Win 7 Pro x64
Delphi 7, Delphi XE, C++ Builder 5, SAP R/3
BeitragVerfasst: Di 11.04.06 09:42 
*g*
Dazu gibts mindestens 65535 Antworten hier im Forum.
Einfach mal die Suche benutzten


z.b. hier
www.delphi-forum.de/...p;highlight=registry

_________________
Delphi: XE - OS: Windows 7 Professional x64
reichemi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 41

WinXP home + prof, SUSE 9.2
Delphi 6
BeitragVerfasst: Di 11.04.06 16:09 
die delphi-hilfe zum stichwort TRegistry oder TRegIniFile ist auch sehr ausführlich und hilfreich... einfach mal reinschauen und rumprobieren (dann aber lieber nur die Read*-Methoden verwenden, nichts wild löschen ;) )