Ü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
