Autor Beitrag
Xion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Mi 07.02.07 16:19 
Hi

wie kann ich mit Hilfe des Fensterhandles das Icon des jeweiligen Programms auslesen (dieses Icon wird z.B. in der Taskbar angezeigt).

Thx

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
Renegade
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 358

Win XP Pro, Win 7 Beta
BDS 2006
BeitragVerfasst: Mi 07.02.07 16:46 
Guckst Du hier

www.delphi-forum.de/...on+programm+auslesen

2 Sekunden Boardsuche!

_________________
Sokrates (468 v.Chr. - 399 v.Chr.)
"Es ist keine Schande, nichts zu wissen, wohl aber, nichts lernen zu wollen."
Xion Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Mi 07.02.07 19:33 
thx

ui...nach was hast du gesucht? ich hab nix gefunden...fies ;)

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
Xion Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Do 08.02.07 15:06 
hmmm, aber eigentlich hilft mir das jetzt auch nicht weiter. Weil ich hab keinen Pfad der Datei sondern nur das Fensterhandle. Und es ist ja auch nicht das eigene Programm, sondern andere, die ich über EnumWindows bekomme...

thx

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
Xion Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Do 08.02.07 15:24 
das löst schonmal weitestgehend mein Problem, leider funktioniert dabei das Delphi-Logo nicht :(

groups.google.de/gro...2%2356782264eadd6f42

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
Xion Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Do 08.02.07 16:33 
seltsam, wenn Delphi minimiert ist, erkennt er auch bei Delphi das Icon :?:

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
OldGrumpy
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 82



BeitragVerfasst: Do 08.02.07 18:52 
Probier auch mal den Ansatz mit WM_GETICON:

MSDN-Seite zur Windows Message WM_GETICON

Neben GCL_HICON gibts auch noch GCL_HICONSM als Parameter für GetClassLong - es empfiehlt sich, alle Methoden durchzuprobieren bis man ein Icon hat :) Oder man nimmt halt ein Standardicon.
Xion Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Fr 09.02.07 15:08 
user profile iconOldGrumpy hat folgendes geschrieben:
Probier auch mal den Ansatz mit WM_GETICON


;) diese Funktion findet genau die, die ich sonst nicht finde, aber die, die ich vorher gefunden habe, findet er nicht mehr :autsch:

naja, beide funktionen zusammen funktionieren aber jetzt einwandfrei :zustimm:

user profile iconOldGrumpy hat folgendes geschrieben:

Neben GCL_HICON gibts auch noch GCL_HICONSM als Parameter für GetClassLong


ja, aber HICONSM bedeuted nur, dass ich kleine Icons will statt Große.

thx :D

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
OldGrumpy
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 82



BeitragVerfasst: So 11.02.07 15:54 
Das mit dem ICONSM ist mir schon klar, ich hatte nur in einer Newsgroup einen Hinweis gefunden dass manchmal nur eins von beiden funktioniert (also entweder ICON oder ICONSM). Daher hab ichs vorsichtshalber mit reingeschrieben. Interessant finde ich auf jeden Fall dass man zwei unterschiedliche Methoden anwenden muss, um verlässlich ein Icon zu bekommen. Mich würde mal interessieren, woran das liegt. Vielleicht hab ich mal Zeit, mir das anzuschauen, neugierig bin ich da auf jeden Fall :)