Autor Beitrag
Jakob Schöttl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 929
Erhaltene Danke: 1


Delphi 7 Professional
BeitragVerfasst: Fr 01.09.06 13:05 
Hallo,
weiß jemand, wie, oder ob man eine andere Anwendung so öffnen kann, dass dann das Hauptfenster in meinem eigenen programm als child angezeigt wird?

Könnt ihr mir helfen?
Jakob Schöttl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 929
Erhaltene Danke: 1


Delphi 7 Professional
BeitragVerfasst: Sa 02.09.06 15:21 
Hab die Antwort auch ohne euch gefunden, bää :D .

Es gibt eine API, die in der Unit Windows deklariert ist, die heißt SetParent. Also macht mans am besten so:

ausblenden Delphi-Quelltext
1:
2:
3:
  ShellExecute(Handle,'open','sndvol32',nil,nil,sw_shownormal);
  HandleSndVol32 := FindWindow(nil,'Summe');
  SetParent(HandleSndVol32,Form1.Handle);