Autor Beitrag
O'rallY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Sa 03.05.03 23:59 
Wie kann ich mein Programm, wenn es im Hintergrund ist und ich gerde mit einem anderen Programm arbeite, in der Vordergrund holen und den Focus auf es richten?
Ich habe schon SetActiveWindow(Application.Handle); und SetActiveWindow(hInstance); probiert, ohne erfolg. Was kann ich tun?

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 04.05.03 00:22 
SetForegroundWindow?
Shaitan
Hält's aus hier
Beiträge: 15



BeitragVerfasst: So 04.05.03 03:45 
ups schon gut, ich habe nicht gesehen das die Frage beantwortet wurde, weil die Signatur länger was als die antwort! :oops: :oops: :oops:
Sorry...

CU Shaitan
O'rallY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: So 04.05.03 22:47 
Jo, danke Luckie. Ich hab das Problem auch selbstständig gemeistert.
Ja, ich bin ein depp :mrgreen:.

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...
lemming
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Do 01.07.04 16:26 
Hallo, bei mir funktioniert SetForgroundWindow nicht. Was mache ich Falsch?

ausblenden Quelltext
1:
  SetForegroundWindow(WindowsControl.hwndLastWindow);					

Das Handle ist i.O.. Ich habe es mit GetForegroundWindow zuvor ausgelesen.
lemming
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Do 01.07.04 16:41 
Ach ja. Die Funktion liefert sogar True zurück, was meines wissens nach, ja alles ungleich 0 ist. In der MSDN bin ich auch nciht schlauer geworden :(

msdn.microsoft.com/l...foregroundwindow.asp
fuser
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mo 05.07.04 13:59 
Hallo lemming
Versuche das 'mal:
ausblenden Delphi-Quelltext
1:
2:
SendMessage(WindowHandle, WM_SYSCOMMAND, SC_HOTKEY, WindowHandle);
SendMessage(WindowHandle, WM_SYSCOMMAND, SC_RESTORE, WindowHandle);
einfach112
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

xp
del7
BeitragVerfasst: So 19.09.04 17:11 
Titel: ....
Leider steht hier am ende nicht das der code von fuser

100 % perfekt ist ! super vielen dank !
cu
einfach112

ööhhhmmm oh doch net ! schade !
1 mal gings aber wenn ich ein prog im vordergrund habe das gerade gut arbeitet dann kommts doch net mmmhhh :(

_________________
sorry bin noob !