Autor Beitrag
Roy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

Windows7 Ultimate
Delphi 2007, NET, Embarcadero
BeitragVerfasst: Fr 17.08.07 14:28 
Hallo Delphi-Freunde!

Ich möchte von einem Programm(1) aus ein Programm(2) was in der Taskleiste minimiert ist ansprechen und wieder maximieren!

Gibt es hierfür eine Lösung und wenn ja welche?

Danke
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 17.08.07 14:48 
1) du brauchst das handle vom window das du maximieren willst (FindWindow wäre hier nicht schlecht)

2) dann musst du abprüfen ob im handle was drinnsteht (handle<>nil)

3) Mit ShowWindow einfach das angeben was du brauchst (hast ja das Handle schon, in deinem fall also SW_Hide)

lg elundril
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Fr 17.08.07 16:55 
user profile iconelundril hat folgendes geschrieben:
1) du brauchst das handle vom window das du maximieren willst (FindWindow wäre hier nicht schlecht)

Jep.
user profile iconelundril hat folgendes geschrieben:
2) dann musst du abprüfen ob im handle was drinnsteht (handle<>nil)

Fehler: Handle ist ne Zahl, kein Zeiger. Also Prüfen auf <> 0
user profile iconelundril hat folgendes geschrieben:
3) Mit ShowWindow einfach das angeben was du brauchst (hast ja das Handle schon, in deinem fall also SW_Hide)

Quatsch. Hier steht nichts von verstecken. SW_MINIMIZE, SW_MAXIMIZE und SW_RESTORE sind die Konstanten, die du brauchst.

user profile iconelundril hat folgendes geschrieben:
lg elundril

mfg Martok

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 18.08.07 12:44 
ups jop den dritten punkt hab ich von einem anderen Topic abgeschaut und war ein bissal verwirrt. sorry!

lg elundril