Autor Beitrag
Arnulf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: Sa 26.03.05 01:31 
Hallo
Ich würde gerne wissen ob ein window im full screen läuft oder nicht.

das hier liefert mir leider nur zurück ob das fenster maximiert ist.
aber nicht ob es full screen ist also nicht verschoben werden kann.

ausblenden Delphi-Quelltext
1:
2:
3:
wp.length := SizeOf (wp);
                    if GetWindowPlacement(FoundGameWindow,@wp) then
                    momo1.lines.add(inttostr(wp.showCmd));


oder hab ich was falsch verstanden?

Danke
Arnulf
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Sa 26.03.05 01:53 
Hallo!

Na ja, wenn das Fenster die Dimension des Screens hat, ist es im Fullscreen.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 26.03.05 09:01 
ausblenden Delphi-Quelltext
1:
2:
  if (Form1.Width = Screen.Width) AND (Form1.Height = Screen.Height) then
    ShowMessage('Fullscreen!');

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Sa 26.03.05 10:57 
ausblenden Delphi-Quelltext
1:
2:
if WindowStats = wsMaximized then
  {DoWhatYouWant!};

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Arnulf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: Sa 26.03.05 12:02 
Oh ich glaub da hab ich mich falsch ausgedrückt :)
nicht von meinem eigenen programm.
Ich kontrolliere ein anderes programm und wollte wissen ob der user ein anderes fenster im vordergrund hat.

Das muß ich allerdings nur wissen wenn er im vollbild ist also das fenster auch nicht verschieben kann.
man kann ja mit alt tab auf eine andere application wechseln und dann wird das fenster verschiebbar, behaltet aber die gleiche größe also bleibt maximized.

Der grund liegt an einem grafikfehler wenn sich im vollbild zum beispiel ein antivirus drüber legt - dann gibt es grafik fehler und das möchte ich mit meiner appliction checken und entsprechend behandeln.
Das fenster wieder in den vordergrund holen kann ich schon nur checken ob der fall eingetreten ist mach mir probleme :)

Arnulf
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Sa 26.03.05 12:53 
Hallo,

sags doch gleich ;): Suche im MSDN FINDWINDOW und Suche im MSDN ISZOOMED.

Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Arnulf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: Sa 26.03.05 14:01 
isZoomed?
bist du sicher - ich kanns momentan nicht probieren (abend).
Aber ich glaub das hab ich schon probiert.

Aber ich werde es nochmal probieren.. wenns nicht klappt, dann poste ich hald den code :)

Danke jedenfalls
Arnulf
Arnulf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: Sa 26.03.05 20:47 
Hallo nochmal - leider funktioniert es so nicht:

ausblenden Delphi-Quelltext
1:
2:
                  if isZoomed(FoundGameWindow) then AddLogEntry('CLNT: isZoomed')
                  else AddLogEntry ('CLNT: is NOT Zoomed');


als antwort bekomme ich in jedem zustand:
is NOT Zoomed

egal ob ich das fenster verschieben kann oder nicht.
Hab doch gewusst, daß ich das schon probiert hab :).

Arnulf
Xanadu
Hält's aus hier
Beiträge: 2

Win2000, XP
D5
BeitragVerfasst: So 08.05.05 14:18 
Hi,

erfahrungsgemäß hat der DC im fullscreen negative Werte für .Left, .Top, .Bottom und .Right

Closer bin ich auch noch nicht gekommen.

Have fun with it.