Select app\Event
Case EVENT_WINDOW
Select app\WindowEvent
Case thiswindow
Select app\WindowEventData
Case "Closed"
;Do this
End Select
End Select
End Select
or if you're not using an event handling structure you could simple use
If SendMessage( thiswindow, "WM_VISIBLE" ) = False
;Do this
End If
Case EVENT_WINDOW
Select app\WindowEvent
Case thiswindow
Select app\WindowEventData
Case "Closed"
;Do this
End Select
End Select
End Select
or if you're not using an event handling structure you could simple use
If SendMessage( thiswindow, "WM_VISIBLE" ) = False
;Do this
End If