Seite 2 von 2

Verfasst: 12.02.2007 16:36
von Kiffi
Scarabol hat geschrieben:womit weiterhin das Problem besteht, dass ich nicht weiß wie man überprüfen kann ob das jeweilige Fenster auch in der Taskleiste angezeigt wird oder nicht.
http://www.purebasic.fr/german/viewtopi ... 0079#60079 (?)

Grüße ... Kiffi

Verfasst: 12.02.2007 17:02
von Scarabol
Ok danke sieht schonmal sehr gut aus aber leider ist das nicht ganz wasserdicht, ich bekomm zuerst immer zum Teil auch mehrere Leere Ergebnisse und vor allem auch Fenster die nicht da sind angezeigt.
Wie kann ich das verhindern bzw. noch weiter Filtern?

Verfasst: 12.02.2007 17:03
von Scarabol
Ups Server Error und dann Doppelpost bitte löschen

Verfasst: 12.02.2007 17:13
von Tafkadasom2k5
Überprüfe den GetWindowLong_(hWnd) -Style auf die Styles, die dir ein INdiz über die Sichtbarkeit geben (#WS_Visible, #WS_PopUp, #WS_CAPTION, #WS_SYSMENU.....)

Wenn dir das noch zu unpräzise is, dann frag noch mit "GetWindowPlacement_(hWnd, @winplace)" die ganzen Styles ab.
@WinPlace ist die Adresse zu einer Variabkenstruktur (WINPLACEMENT)

Code: Alles auswählen

Structure WINDOWPLACEMENT
    length.l 
    flags.l
    showCmd.l 
    ptMinPosition.POINT 
    ptMaxPosition.POINT 
    rcNormalPosition.RECT 
EndStructure
Die Flags, die du dann zurückbekommst kannst du auf folgende Werte überprüfen
Meine WinAPI hat geschrieben:#SW_HIDE Hides the window and activates another window.
#SW_MINIMIZE Minimizes the specified window and activates the top-level window in the system's list.
#SW_RESTORE Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position (same as #SW_SHOWNORMAL).
#SW_SHOW Activates a window and displays it in its current size and position.
#SW_SHOWMAXIMIZED Activates a window and displays it as a maximized window.
#SW_SHOWMINIMIZED Activates a window and displays it as an icon.
#SW_SHOWMINNOACTIVE Displays a window as an icon. The active window remains active.
#SW_SHOWNA Displays a window in its current state. The active window remains active.
#SW_SHOWNOACTIVATE Displays a window in its most recent size and position. The active window remains active.
#SW_SHOWNORMAL Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position (same as #SW_RESTORE).
Gr33tz
Tafkadasom2k5 :allright: