I asked this question before but I did not get any answer, so let me ask
again here. To be more specific consider the following program
Code: Select all
' uses WinGUI(12) by Lothar Schirm
#Include "WinGUI.bi"
Dim As HWND Window_Main, Label_txt
Dim As MSG msg
Window_Main = Window_New (100, 100, 300, 300, "This window is always open")
Label_txt = Label_New(50, 100, 200, 20, "Still visible when closed",, Window_Main)
Do
WaitEvent(Window_Main, msg)
Loop Until Window_Event_Close(Window_Main, msg)
Print "How to destroy this window "
Print "and keep program running ? "
Sleep
End
Carlos