Autor Beitrag
Terra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 307

Windows 7 Ultimate
Delphi® XE3
BeitragVerfasst: Do 16.03.06 12:56 
Hallöle,

ich habe ein Spiel, das sich mit den normalen Windowscommandos nicht minimmieren lässt. Wenn ich jetzt das Windows Handle habe, gibt es da eine möglichkeit ein minimmieren zu erzwingen ? (Delphi technisch)



Terra


Moderiert von user profile iconraziel: Topic aus Multimedia / Grafik verschoben am Mo 20.03.2006 um 12:49
Terra Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 307

Windows 7 Ultimate
Delphi® XE3
BeitragVerfasst: Mo 20.03.06 10:56 
Will ja hier wirklich net schieben aber weis das keiner oder ist das einfach nicht möglich ?

Terra
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Mo 20.03.06 11:09 
Du könntest ShowWindow mal versuchen... Hab das aber noch nie benutzt...


MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
azubi_20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 593

WinXP SP2, Ubuntu 8.4
D7 Enterp., D2005 Prof., Java (Eclipse 3.4.0)
BeitragVerfasst: Mo 20.03.06 11:09 
ausblenden Delphi-Quelltext
1:
 Application.Minimize					



EDIT : Sorry, hab nich richtig gelesen... :roll:

Bei dsdt steht die Lösung. :wink:


Zuletzt bearbeitet von azubi_20 am Mo 20.03.06 11:14, insgesamt 1-mal bearbeitet
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Mo 20.03.06 11:12 
user profile iconazubi_20 hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
 Application.Minimize					


Öhm, er will ein fremdes Fenster minimieren, nicht seine eigene Anwendung ;) Oder hab ich da was falsch verstanden?


MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
Terra Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 307

Windows 7 Ultimate
Delphi® XE3
BeitragVerfasst: Mo 20.03.06 11:34 
Ja ein fremdes Fenster ... sollte doch aber mit dem Handel funktionieren oder?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button1Click(Sender: TObject);
var
  h:HWnd;
begin
  h:=handle;
  postmessage(h,WM_SYSCOMMAND,SC_MINIMIZE,0);
end;


wenn ich jetzt anstelle h:=handle ... h := FindWindow('#32770', 'Fenstername'); sollte es doch gehen oder? Hab noch nie mit den Befehlen gearbeitet.

Terra


PS: Kanns hier auf Arbeit leider nicht ausprobieren, sondern nur zu Hause, darum entschuldigt die Frage.

Moderiert von user profile iconraziel: Quote- durch Delphi-Tags ersetzt