Autor Beitrag
Experience1986
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 192

Win XP Pro SP2
Delphi 7
BeitragVerfasst: So 21.03.04 14:30 
Hi,

Ich hab ´mit meinem Programm eine neue Dateiendung in der Windows Registry angelegt. Nun, hab ich das Problem, das Windows seine Einstellungen bzw. das Icon für den Typ erst nach einem Neustart vollständig anzeigt. Die Winodws Ordneroptionen aktualisieren das aber auch zur Laufzeit von Windows. Deshalb wollt ich mal wissen, ob es da nicht eine Windows API FUnktion gibt, bestmöglich für Windows 98 bis XP.

Vielen Dank im Voraus.
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: So 21.03.04 14:38 
Imho gibts ne systemmessage WM_SYSINICHANGE oder so ähnlich.
grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
Experience1986 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 192

Win XP Pro SP2
Delphi 7
BeitragVerfasst: So 21.03.04 15:05 
Sorry, was bitte is Imho?
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: So 21.03.04 15:52 
In My Humble Opinion = Meiner bescheidenen Meinung nach

guckst du hier:
info.astrian.net/jargon/


raziel

_________________
JSXGraph
Experience1986 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 192

Win XP Pro SP2
Delphi 7
BeitragVerfasst: So 21.03.04 16:05 
schön, schön, und was kann ich nun mit WM_SYSINICHANGE anfangen?
In der OH find ich nix.
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: So 21.03.04 16:12 
nach einem Blick ins SDK: WM_WININICHANGE. Wird aber von neueren BS nicht mehr ausgewertet; dazu nehme man:

Zitat:
The system sends the WM_SETTINGCHANGE message to all top-level windows when the SystemParametersInfo function changes a system-wide setting. The system sends this message only if the SystemParametersInfo caller specifies the SPIF_SENDCHANGE flag.

An application can send WM_SETTINGCHANGE to all top-level windows when it makes changes to system parameters. For example, you can send this message after a call to the WriteProfileString, WriteProfileSection, or SetLocaleInfo functions, or after making changes to system parameters in the registry.


näheres in der mit Delhpi mitgelieferten W32 Programmer's Reference

grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: So 21.03.04 16:15 
Ich habe mal so ein Programm geschrieben. Hier kann man es runterladen.

Dies ist die API Funktion:
ausblenden Delphi-Quelltext
1:
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, nil, nil);					

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.