Autor Beitrag
mcst09
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 112



BeitragVerfasst: Do 14.12.06 12:53 
Hallo,

wie kann ich zur Laufzeit meiner Anwendung abfragen, ob der User den Style seiner XP-Kiste ändert (zB. von blau zu grau)? Ich möchte dann dementsprechend reagieren. Bisher muss ich immer neustarten, damit die Änderungen übernommen werden.

danke
AXL
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Fr 15.12.06 06:46 
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15.12.2006 05:41:54 --- HKey_Current_User\Control Panel\Appearance
15.12.2006 05:41:47 --- HKey_Current_User\Control Panel\Appearance\New Schemes\Current Settings SaveAll\Sizes\0
15.12.2006 05:41:47 --- HKey_Current_User\Control Panel\Colors
15.12.2006 05:41:47 --- HKey_Current_User\Control Panel\Desktop
15.12.2006 05:41:47 --- HKey_Current_User\Control Panel\Desktop\WindowMetrics
15.12.2006 05:41:48 --- HKey_Current_User\Software\Microsoft\CTF\LangBar
15.12.2006 05:41:48 --- HKey_Current_User\Software\Microsoft\CTF\LangBar\ItemState
15.12.2006 05:41:48 --- HKey_Current_User\Software\Microsoft\CTF\LangBar\ItemState\{ED9D5450-EBE6-4255-8289-F8A31E687228}
15.12.2006 05:41:53 --- HKey_Current_User\Software\Microsoft\Internet Explorer\Desktop\Components\0
15.12.2006 05:41:47 --- HKey_Current_User\Software\Microsoft\MediaPlayer\Player\Skins
15.12.2006 05:41:47 --- HKey_Current_User\Software\Microsoft\MediaPlayer\Preferences
15.12.2006 05:41:44 --- HKey_Current_User\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count
15.12.2006 05:41:47 --- HKey_Current_User\Software\Microsoft\Windows\CurrentVersion\ThemeManager
15.12.2006 05:41:51 --- HKey_Current_User\Software\Microsoft\Windows\Shell\Bags\1\Desktop


In diesen Keys findet beim Themewechsel eine Änderung raus. Such Dir einen aus und schau nach ob eine Änderung stattgefunden hat. Such dir einen raus, der sich auch sicher ändert (da sind ein paar Keys nicht sicher).

Eine API Funktion gibts bestimmt auch, kenn ich aber nicht ;)
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Fr 15.12.06 09:11 
Mit GetThemeSysColor erhältst du die aktuelle Theme Farbe mit WM_SYSCOLORCHANGE / WM_THEMECHANGE kannst du abfangen, wenn ein Theme geändert wird.